Class MessageListCodeMatcher
- java.lang.Object
-
- org.hamcrest.BaseMatcher<T>
-
- org.hamcrest.TypeSafeMatcher<org.faktorips.runtime.MessageList>
-
- org.faktorips.testsupport.matchers.MessageListCodeMatcher
-
- All Implemented Interfaces:
org.hamcrest.Matcher<org.faktorips.runtime.MessageList>,org.hamcrest.SelfDescribing
public class MessageListCodeMatcher extends org.hamcrest.TypeSafeMatcher<org.faktorips.runtime.MessageList>Checks whether aMessageListcontains aMessagewith a certain message code.
-
-
Constructor Summary
Constructors Constructor Description MessageListCodeMatcher(java.lang.String messageCode)MessageListCodeMatcher(java.lang.String messageCode, boolean expectMessage)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddescribeTo(org.hamcrest.Description description)booleanmatchesSafely(org.faktorips.runtime.MessageList list)-
Methods inherited from class org.hamcrest.TypeSafeMatcher
describeMismatch, describeMismatchSafely, matches
-
-
-
-
Constructor Detail
-
MessageListCodeMatcher
public MessageListCodeMatcher(@CheckForNull java.lang.String messageCode)- Parameters:
messageCode- the expected message code
-
MessageListCodeMatcher
public MessageListCodeMatcher(@CheckForNull java.lang.String messageCode, boolean expectMessage)- Parameters:
messageCode- the expected message codeexpectMessage- whether a message is expected.trueif a message is expected,falseif no message with the given message code is expected (negates result).
-
-