Package org.faktorips.testsupport.matchers
@DefaultAnnotation(edu.umd.cs.findbugs.annotations.NonNull.class)
package org.faktorips.testsupport.matchers
Hamcrest
Matchers for use in JUnit tests of Faktor-IPS (generated)
code.
Use IpsMatchers' static factory methods to create instances
of these matchers.
-
ClassesClassDescriptionMatches a
MessageListif itis empty.Matches aMessageif it'smessage codeis the givenmessageCode.Checks whether aMessagecontains the given invalid object.Checks whether aMessageListcontains aMessagewith a certain message code.Matches aMessageListif one of it'sMessagesis matched by the givenMatcher<Message>.Matches aMessageListif it contains a given number ofMessageswith a givenObjectProperty.Matches aMessageList'ssize.Matches aMessageif it'smarkerscontain the givenmarker.A typesafeMatcherfor aMessage.Creates aMessageMatcherthat extracts a property of type <P> from aMessageand matches it with a given matcher.Matches aMessageif it'sseverityis the givenSeverity.