Class HamcrestAdapter
java.lang.Object
mockit.internal.expectations.argumentMatching.HamcrestAdapter
- All Implemented Interfaces:
ArgumentMatcher<HamcrestAdapter>
Adapts the
org.hamcrest.Matcher interface to ArgumentMatcher.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanEvaluates the matcher for the given argument.booleansame(HamcrestAdapter other) Indicates whether this matcher instance is functionally the same as another one of the same type.voidwriteMismatchPhrase(ArgumentMismatch argumentMismatch) Writes a phrase to be part of an error message describing an argument mismatch.
-
Constructor Details
-
HamcrestAdapter
public HamcrestAdapter(@NonNull org.hamcrest.Matcher<?> matcher)
-
-
Method Details
-
same
Description copied from interface:ArgumentMatcherIndicates whether this matcher instance is functionally the same as another one of the same type.- Specified by:
samein interfaceArgumentMatcher<HamcrestAdapter>
-
matches
Description copied from interface:ArgumentMatcherEvaluates the matcher for the given argument.- Specified by:
matchesin interfaceArgumentMatcher<HamcrestAdapter>
-
writeMismatchPhrase
Description copied from interface:ArgumentMatcherWrites a phrase to be part of an error message describing an argument mismatch.- Specified by:
writeMismatchPhrasein interfaceArgumentMatcher<HamcrestAdapter>
-
getInnerValue
-