Class MessageListMessageMatcher
java.lang.Object
org.hamcrest.BaseMatcher<T>
org.hamcrest.TypeSafeMatcher<org.faktorips.runtime.MessageList>
org.faktorips.testsupport.matchers.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
ConstructorsConstructorDescriptionMessageListMessageMatcher(org.hamcrest.Matcher<org.faktorips.runtime.Message>... messageMatchers) -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddescribeMismatchSafely(org.faktorips.runtime.MessageList item, org.hamcrest.Description mismatchDescription) voiddescribeTo(org.hamcrest.Description description) protected booleanmatchesSafely(org.faktorips.runtime.MessageList messageList) Methods inherited from class org.hamcrest.TypeSafeMatcher
describeMismatch, matchesMethods inherited from class org.hamcrest.BaseMatcher
_dont_implement_Matcher___instead_extend_BaseMatcher_, isNotNull, toString
-
Constructor Details
-
MessageListMessageMatcher
@SafeVarargs public MessageListMessageMatcher(org.hamcrest.Matcher<org.faktorips.runtime.Message>... messageMatchers)
-
-
Method Details
-
describeTo
public void describeTo(org.hamcrest.Description description) -
matchesSafely
protected boolean matchesSafely(org.faktorips.runtime.MessageList messageList) - Specified by:
matchesSafelyin classorg.hamcrest.TypeSafeMatcher<org.faktorips.runtime.MessageList>
-
describeMismatchSafely
protected void describeMismatchSafely(org.faktorips.runtime.MessageList item, org.hamcrest.Description mismatchDescription) - Overrides:
describeMismatchSafelyin classorg.hamcrest.TypeSafeMatcher<org.faktorips.runtime.MessageList>
-