Class EqualityMatcher
java.lang.Object
mockit.internal.expectations.argumentMatching.EqualityMatcher
- All Implemented Interfaces:
ArgumentMatcher<EqualityMatcher>
- Direct Known Subclasses:
InequalityMatcher
,LenientEqualityMatcher
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
static boolean
areEqualWhenNonNull
(Object o1, Object o2) boolean
Evaluates the matcher for the given argument.final boolean
same
(EqualityMatcher other) 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
Description copied from interface:ArgumentMatcher
Indicates whether this matcher instance is functionally the same as another one of the same type.- Specified by:
same
in interfaceArgumentMatcher<EqualityMatcher>
-
matches
Description copied from interface:ArgumentMatcher
Evaluates the matcher for the given argument.- Specified by:
matches
in interfaceArgumentMatcher<EqualityMatcher>
-
writeMismatchPhrase
Description copied from interface:ArgumentMatcher
Writes a phrase to be part of an error message describing an argument mismatch.- Specified by:
writeMismatchPhrase
in interfaceArgumentMatcher<EqualityMatcher>
-
areEqual
-
areEqualWhenNonNull
-