public class AlwaysMatcher extends AbstractMatcher
| Constructor and Description |
|---|
AlwaysMatcher() |
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.String |
argumentToString(java.lang.Object argument)
Converts an argument to a String, used by
AbstractMatcher.toString(Object[]). |
boolean |
matches(java.lang.Object[] expected,
java.lang.Object[] actual)
Checks whether an expected argument array matches an actual argument array.
|
argumentMatches, toStringpublic boolean matches(java.lang.Object[] expected,
java.lang.Object[] actual)
AbstractMatcherargumentMatches(Object, Object) to check whether arguments
pairs match. If all the arguments match, true is returned, otherwise
false. In two cases, argumentMatches(Object, Object) is
not called: If both argument arrays are null, they match; if one and only
one is null, they do not match.matches in interface ArgumentsMatchermatches in class AbstractMatcherexpected - the expected arguments.actual - the actual arguments.protected 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.Copyright © 2001-2009 OFFIS, Tammo Freese, Henri Tremblay. This documentation is provided under the terms of the MIT licence.]]>