public class MatcherApplicationStrategy extends Object
Modifier and Type | Method and Description |
---|---|
boolean |
forEachMatcherAndArgument(ArgumentMatcherAction action)
Applies the given
ArgumentMatcherAction to all arguments and
corresponding matchers |
static MatcherApplicationStrategy |
getMatcherApplicationStrategyFor(Invocation invocation,
List<ArgumentMatcher<?>> matchers)
Returns the
MatcherApplicationStrategy that must be used to capture the
arguments of the given invocation using the given matchers. |
public static MatcherApplicationStrategy getMatcherApplicationStrategyFor(Invocation invocation, List<ArgumentMatcher<?>> matchers)
MatcherApplicationStrategy
that must be used to capture the
arguments of the given invocation using the given matchers.invocation
- that contain the arguments to capturematchers
- that will be used to capture the arguments of the invocation,
the passed List
is not required to contain a
CapturingMatcher
null
public boolean forEachMatcherAndArgument(ArgumentMatcherAction action)
ArgumentMatcherAction
to all arguments and
corresponding matchersaction
- must not be null
true
if the given action returned
true
for all arguments and matchers passed to it.
false
if the given action returned
false
for one of the passed arguments and matchers
false
if the given matchers don't fit to the given invocation
because too many or to few matchers are available.
Copyright © 2020. All rights reserved.