|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.unitils.mock.argumentmatcher.impl.AnyArgumentMatcher
public class AnyArgumentMatcher
A matcher for checking whether an argument value is of a certain type.
| Constructor Summary | |
|---|---|
AnyArgumentMatcher(java.lang.Class<?> type)
Creates a matcher for the given expected type. |
|
| Method Summary | |
|---|---|
boolean |
matches(java.lang.Object argument,
java.lang.Object argumentAtInvocationTime)
Returns true if the given argument is of the expected type, false otherwise. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AnyArgumentMatcher(java.lang.Class<?> type)
type - The expected type, not null| Method Detail |
|---|
public boolean matches(java.lang.Object argument,
java.lang.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 null
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||