public class AnyArgumentMatcher extends Object implements ArgumentMatcher
ArgumentMatcher.MatchResult| Constructor and Description |
|---|
AnyArgumentMatcher(Class<?> type)
Creates a matcher for the given expected type.
|
| Modifier and Type | Method and Description |
|---|---|
ArgumentMatcher.MatchResult |
matches(Object argument,
Object argumentAtInvocationTime)
Returns true if the given argument is of the expected type, false otherwise.
|
public AnyArgumentMatcher(Class<?> type)
type - The expected type, not nullpublic ArgumentMatcher.MatchResult matches(Object argument, Object argumentAtInvocationTime)
matches in interface ArgumentMatcherargument - The argument that were used by reference, not nullargumentAtInvocationTime - Copy of the argument, taken at the time that the invocation was performed, not nullCopyright © 2016. All Rights Reserved.