Class MessageMatcher

    • Constructor Summary

      Constructors 
      Constructor Description
      MessageMatcher()  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      MessageMatcher and​(MessageMatcher other)
      Combines this MessageMatcher with another MessageMatcher creating a MessageMatcher that only matches if both original matchers match.
      protected abstract void describeMessageProperty​(org.hamcrest.Description description)
      Adds the description of the property checked by this matcher to the given description.
      protected abstract void describeMismatchedProperty​(org.faktorips.runtime.Message message, org.hamcrest.Description mismatchDescription)
      Adds the description of the given message's actual value of the property checked by this matcher to the given description.
      protected void describeMismatchSafely​(org.faktorips.runtime.Message message, org.hamcrest.Description mismatchDescription)
      void describeTo​(org.hamcrest.Description description)
      • Methods inherited from class org.hamcrest.TypeSafeMatcher

        describeMismatch, matches, matchesSafely
      • Methods inherited from class org.hamcrest.BaseMatcher

        _dont_implement_Matcher___instead_extend_BaseMatcher_, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • MessageMatcher

        public MessageMatcher()
    • Method Detail

      • describeTo

        public void describeTo​(org.hamcrest.Description description)
        Implementation Note:
        uses describeMessageProperty(Description) to describe the property the message should have
      • describeMessageProperty

        protected abstract void describeMessageProperty​(org.hamcrest.Description description)
        Adds the description of the property checked by this matcher to the given description.
      • describeMismatchSafely

        protected void describeMismatchSafely​(org.faktorips.runtime.Message message,
                                              org.hamcrest.Description mismatchDescription)
        Overrides:
        describeMismatchSafely in class org.hamcrest.TypeSafeMatcher<org.faktorips.runtime.Message>
        Implementation Note:
        uses describeMismatchedProperty(Message, Description) to describe the property the actually has
      • describeMismatchedProperty

        protected abstract void describeMismatchedProperty​(org.faktorips.runtime.Message message,
                                                           org.hamcrest.Description mismatchDescription)
        Adds the description of the given message's actual value of the property checked by this matcher to the given description.