Class MessageListMessageMatcher

  • All Implemented Interfaces:
    org.hamcrest.Matcher<org.faktorips.runtime.MessageList>, org.hamcrest.SelfDescribing

    public class MessageListMessageMatcher
    extends org.hamcrest.TypeSafeMatcher<org.faktorips.runtime.MessageList>
    Matches a MessageList if one of it's Messages is matched by the given Matcher<Message>.
    • Constructor Summary

      Constructors 
      Constructor Description
      MessageListMessageMatcher​(org.hamcrest.Matcher<org.faktorips.runtime.Message>... messageMatchers)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void describeMismatchSafely​(org.faktorips.runtime.MessageList item, org.hamcrest.Description mismatchDescription)  
      void describeTo​(org.hamcrest.Description description)  
      protected boolean matchesSafely​(org.faktorips.runtime.MessageList messageList)  
      • Methods inherited from class org.hamcrest.TypeSafeMatcher

        describeMismatch, matches
      • 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

      • MessageListMessageMatcher

        @SafeVarargs
        public MessageListMessageMatcher​(org.hamcrest.Matcher<org.faktorips.runtime.Message>... messageMatchers)
    • Method Detail

      • describeTo

        public void describeTo​(org.hamcrest.Description description)
      • matchesSafely

        protected boolean matchesSafely​(org.faktorips.runtime.MessageList messageList)
        Specified by:
        matchesSafely in class org.hamcrest.TypeSafeMatcher<org.faktorips.runtime.MessageList>
      • describeMismatchSafely

        protected void describeMismatchSafely​(org.faktorips.runtime.MessageList item,
                                              org.hamcrest.Description mismatchDescription)
        Overrides:
        describeMismatchSafely in class org.hamcrest.TypeSafeMatcher<org.faktorips.runtime.MessageList>