Package org.mockito.internal.invocation
Interface ArgumentMatcherAction
- All Known Implementing Classes:
TypeSafeMatching
public interface ArgumentMatcherAction
-
Method Summary
Modifier and TypeMethodDescriptionboolean
apply
(ArgumentMatcher<?> matcher, Object argument) Implementations must apply the given matcher to the argument and returntrue
if the operation was successful orfalse
if not.
-
Method Details
-
apply
Implementations must apply the given matcher to the argument and returntrue
if the operation was successful orfalse
if not. In this case no more matchers and arguments will be passed byMatcherApplicationStrategy.forEachMatcherAndArgument(ArgumentMatcherAction)
to this method. .- Parameters:
matcher
- to process the argument, nevernull
argument
- to be processed by the matcher, can benull
- Returns:
true
if the matcher was successfully applied to the argument and the next pair of matcher and argument should be passedfalse
otherwise
-