public class ArrayMatcher extends AbstractMatcher
| Constructor and Description |
|---|
ArrayMatcher() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
argumentMatches(java.lang.Object expected,
java.lang.Object actual)
Checks whether an expected argument matches an actual argument; the method
is used by
AbstractMatcher.matches(Object[], Object[]). |
java.lang.String |
argumentToString(java.lang.Object argument)
Converts an argument to a String, used by
AbstractMatcher.toString(Object[]). |
matches, toStringpublic java.lang.String argumentToString(java.lang.Object argument)
AbstractMatcherAbstractMatcher.toString(Object[]).argumentToString in class AbstractMatcherargument - the argument to convert to a String.String representation of the argument.public boolean argumentMatches(java.lang.Object expected,
java.lang.Object actual)
AbstractMatcherAbstractMatcher.matches(Object[], Object[]). The arguments
provided to this method are always not null.argumentMatches in class AbstractMatcherexpected - the expected argument.actual - the actual argument.