Uses of Class
org.faktorips.testsupport.matchers.MessageMatcher
Packages that use MessageMatcher
Package
Description
Utility classes for testing Faktor-IPS (generated) code.
Hamcrest
Matchers for use in JUnit tests of Faktor-IPS (generated)
code.-
Uses of MessageMatcher in org.faktorips.testsupport
Methods in org.faktorips.testsupport that return MessageMatcherModifier and TypeMethodDescriptionstatic MessageMatcherIpsMatchers.containsText(String text) static MessageMatcherIpsMatchers.hasInvalidObject(Object invalidObject) static MessageMatcherIpsMatchers.hasInvalidObject(Object invalidObject, String propertyName) static MessageMatcherIpsMatchers.hasMarker(org.faktorips.runtime.IMarker marker) static MessageMatcherIpsMatchers.hasMessageCodeThat(org.hamcrest.Matcher<String> messageCodeMatcher) static <P> MessageMatcherIpsMatchers.hasProperty(Function<org.faktorips.runtime.Message, P> propertyExtractor, org.hamcrest.Matcher<P> propertyMatcher, 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 MessageMatcherModifier and TypeMethodDescriptionstatic 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.matchersModifier and TypeClassDescriptionclassMatches aMessageif it'smessage codeis the givenmessageCode.classChecks whether aMessagecontains the given invalid object.classMatches aMessageif it'smarkerscontain the givenmarker.classCreates aMessageMatcherthat extracts a property of type <P> from aMessageand matches it with a given matcher.classMatches aMessageif it'sseverityis the givenSeverity.Methods in org.faktorips.testsupport.matchers that return MessageMatcherModifier and TypeMethodDescriptionMessageMatcher.and(MessageMatcher other) Combines thisMessageMatcherwith anotherMessageMatchercreating aMessageMatcherthat only matches if both original matchers match.Methods in org.faktorips.testsupport.matchers with parameters of type MessageMatcherModifier and TypeMethodDescriptionMessageMatcher.and(MessageMatcher other) Combines thisMessageMatcherwith anotherMessageMatchercreating aMessageMatcherthat only matches if both original matchers match.