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, toString
public boolean matches(java.lang.Object[] expected, java.lang.Object[] actual)
AbstractMatcher
argumentMatches(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 ArgumentsMatcher
matches
in class AbstractMatcher
expected
- the expected arguments.actual
- the actual arguments.protected java.lang.String argumentToString(java.lang.Object argument)
AbstractMatcher
AbstractMatcher.toString(Object[])
.argumentToString
in class AbstractMatcher
argument
- 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.]]>