Class MessageInvalidObjectMatcher

java.lang.Object
org.hamcrest.BaseMatcher<T>
org.hamcrest.TypeSafeMatcher<org.faktorips.runtime.Message>
org.faktorips.testsupport.matchers.MessageMatcher
org.faktorips.testsupport.matchers.MessageInvalidObjectMatcher
All Implemented Interfaces:
org.hamcrest.Matcher<org.faktorips.runtime.Message>, org.hamcrest.SelfDescribing

public class MessageInvalidObjectMatcher extends MessageMatcher
Checks whether a Message contains the given invalid object.
  • Constructor Details

    • MessageInvalidObjectMatcher

      public MessageInvalidObjectMatcher(Object invalidObject)
    • MessageInvalidObjectMatcher

      public MessageInvalidObjectMatcher(Object invalidObject, String propertyName)
  • Method Details

    • describeMessageProperty

      protected void describeMessageProperty(org.hamcrest.Description description)
      Description copied from class: MessageMatcher
      Adds the description of the property checked by this matcher to the given description.
      Specified by:
      describeMessageProperty in class MessageMatcher
    • describeMismatchedProperty

      protected void describeMismatchedProperty(org.faktorips.runtime.Message message, org.hamcrest.Description mismatchDescription)
      Description copied from class: MessageMatcher
      Adds the description of the given message's actual value of the property checked by this matcher to the given description.
      Specified by:
      describeMismatchedProperty in class MessageMatcher
    • matchesSafely

      public boolean matchesSafely(org.faktorips.runtime.Message message)
      Specified by:
      matchesSafely in class org.hamcrest.TypeSafeMatcher<org.faktorips.runtime.Message>