Package org.mockito.internal.matchers
Class CapturingMatcher<T>
java.lang.Object
org.mockito.internal.matchers.CapturingMatcher<T>
- All Implemented Interfaces:
Serializable,ArgumentMatcher<T>,CapturesArguments,VarargMatcher
public class CapturingMatcher<T>
extends Object
implements ArgumentMatcher<T>, CapturesArguments, VarargMatcher, Serializable
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcaptureFrom(Object argument) booleanInforms if this matcher accepts the given argument.toString()
-
Field Details
-
arguments
-
lock
-
readLock
-
writeLock
-
-
Constructor Details
-
CapturingMatcher
public CapturingMatcher()
-
-
Method Details
-
matches
Description copied from interface:ArgumentMatcherInforms if this matcher accepts the given argument.The method should never assert if the argument doesn't match. It should only return false.
See the example in the top level javadoc for
ArgumentMatcher- Specified by:
matchesin interfaceArgumentMatcher<T>- Parameters:
argument- the argument- Returns:
- true if this matcher accepts the given argument.
-
toString
-
getLastValue
-
getAllValues
-
captureFrom
- Specified by:
captureFromin interfaceCapturesArguments
-