Class CaptureMatcher<T>
java.lang.Object
mockit.internal.expectations.argumentMatching.CaptureMatcher<T>
- All Implemented Interfaces:
ArgumentMatcher<CaptureMatcher<T>>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Evaluates the matcher for the given argument.boolean
same
(CaptureMatcher<T> other) Indicates whether this matcher instance is functionally the same as another one of the same type.void
setExpectedType
(Class<?> expectedType) void
writeMismatchPhrase
(ArgumentMismatch argumentMismatch) Writes a phrase to be part of an error message describing an argument mismatch.
-
Constructor Details
-
CaptureMatcher
-
-
Method Details
-
setExpectedType
-
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<T>
-
matches
Description copied from interface:ArgumentMatcher
Evaluates the matcher for the given argument.- Specified by:
matches
in interfaceArgumentMatcher<T>
-
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<T>
-