public class RefEqArgumentMatcher extends Object implements ArgumentMatcher
ArgumentMatcher.MatchResult| Constructor and Description |
|---|
RefEqArgumentMatcher(Object value)
Creates a matcher for the given value.
|
| Modifier and Type | Method and Description |
|---|---|
ArgumentMatcher.MatchResult |
matches(Object argument,
Object argumentAtInvocationTime)
Returns true if the given object matches the expected argument, false otherwise.
|
public RefEqArgumentMatcher(Object value)
value - The expected valuepublic 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.