Package org.mockito.internal.invocation
Interface ArgumentMatcherAction
-
- All Known Implementing Classes:
TypeSafeMatching
public interface ArgumentMatcherAction
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanapply(ArgumentMatcher<?> matcher, java.lang.Object argument)Implementations must apply the given matcher to the argument and returntrueif the operation was successful orfalseif not.
-
-
-
Method Detail
-
apply
boolean apply(ArgumentMatcher<?> matcher, java.lang.Object argument)
Implementations must apply the given matcher to the argument and returntrueif the operation was successful orfalseif not. In this case no more matchers and arguments will be passed byMatcherApplicationStrategy.forEachMatcherAndArgument(ArgumentMatcherAction)to this method. .- Parameters:
matcher- to process the argument, nevernullargument- to be processed by the matcher, can benull- Returns:
trueif the matcher was successfully applied to the argument and the next pair of matcher and argument should be passedfalseotherwise
-
-