|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.easymock.AbstractMatcher
org.easymock.internal.AlwaysMatcher
public class AlwaysMatcher
Constructor Summary | |
---|---|
AlwaysMatcher()
|
Method Summary | |
---|---|
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. |
Methods inherited from class org.easymock.AbstractMatcher |
---|
argumentMatches, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AlwaysMatcher()
Method Detail |
---|
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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |