Uses of Class
org.faktorips.testsupport.matchers.MessageMatcher
-
Packages that use MessageMatcher Package Description org.faktorips.testsupport Utility classes for testing Faktor-IPS (generated) code.org.faktorips.testsupport.matchers HamcrestMatchersfor use in JUnit tests of Faktor-IPS (generated) code. -
-
Uses of MessageMatcher in org.faktorips.testsupport
Methods in org.faktorips.testsupport that return MessageMatcher Modifier and Type Method Description static MessageMatcherIpsMatchers. containsText(java.lang.String text)Creates aMatcherthat matches if theMessage's textcontainsthe given text.static MessageMatcherIpsMatchers. hasInvalidObject(java.lang.Object invalidObject)static MessageMatcherIpsMatchers. hasInvalidObject(java.lang.Object invalidObject, java.lang.String propertyName)static MessageMatcherIpsMatchers. hasMarker(org.faktorips.runtime.IMarker marker)static MessageMatcherIpsMatchers. hasMessageCodeThat(org.hamcrest.Matcher<java.lang.String> messageCodeMatcher)static <P> MessageMatcherIpsMatchers. hasProperty(java.util.function.Function<org.faktorips.runtime.Message,P> propertyExtractor, org.hamcrest.Matcher<P> propertyMatcher, java.lang.String propertyDescription)Creates aMessageMatcherthat extracts a<P>property from aMessageand matches it with the given matcher.static MessageMatcherIpsMatchers. hasSeverity(org.faktorips.runtime.Severity severity)Methods in org.faktorips.testsupport with parameters of type MessageMatcher Modifier and Type Method Description static MessageListMessageMatcherIpsMatchers. hasMessageThat(MessageMatcher messageMatcher)Creates aMatcherthat matches if anyMessagein theMessageListis matched by the givenMatcher. -
Uses of MessageMatcher in org.faktorips.testsupport.matchers
Subclasses of MessageMatcher in org.faktorips.testsupport.matchers Modifier and Type Class Description classMessageCodeMatcherMatches aMessageif it'smessage codeis the givenmessageCode.classMessageInvalidObjectMatcherChecks whether aMessagecontains the given invalid object.classMessageMarkerMatcherMatches aMessageif it'smarkerscontain the givenmarker.classMessagePropertyMatcher<P>Creates aMessageMatcherthat extracts a property of type <P> from aMessageand matches it with a given matcher.classMessageSeverityMatcherMatches aMessageif it'sseverityis the givenSeverity.Methods in org.faktorips.testsupport.matchers that return MessageMatcher Modifier and Type Method Description MessageMatcherMessageMatcher. and(MessageMatcher other)Combines thisMessageMatcherwith anotherMessageMatchercreating aMessageMatcherthat only matches if both original matchers match.Methods in org.faktorips.testsupport.matchers with parameters of type MessageMatcher Modifier and Type Method Description MessageMatcherMessageMatcher. and(MessageMatcher other)Combines thisMessageMatcherwith anotherMessageMatchercreating aMessageMatcherthat only matches if both original matchers match.
-