Interface ArgumentMatcher<M extends ArgumentMatcher<M>>
- All Known Implementing Classes:
AlwaysTrueMatcher
,CaptureMatcher
,ClassMatcher
,EqualityMatcher
,HamcrestAdapter
,InequalityMatcher
,LenientEqualityMatcher
,NonNullityMatcher
,NullityMatcher
,NumericEqualityMatcher
,PatternMatcher
,ReflectiveMatcher
,SamenessMatcher
,StringContainmentMatcher
,StringPrefixMatcher
,StringSuffixMatcher
public interface ArgumentMatcher<M extends ArgumentMatcher<M>>
An argument matcher for the recording/verification of expectations.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Evaluates the matcher for the given argument.boolean
Indicates whether this matcher instance is functionally the same as another one of the same type.void
writeMismatchPhrase
(ArgumentMismatch argumentMismatch) Writes a phrase to be part of an error message describing an argument mismatch.
-
Method Details
-
same
Indicates whether this matcher instance is functionally the same as another one of the same type. -
matches
Evaluates the matcher for the given argument. -
writeMismatchPhrase
Writes a phrase to be part of an error message describing an argument mismatch.
-