|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.hammingweight.hammock.ClassArgumentMatcher
public class ClassArgumentMatcher
The ClassArgumentMatcher class checks that a method argument is an instance of the expected class.
Constructor Summary | |
---|---|
ClassArgumentMatcher()
|
Method Summary | |
---|---|
boolean |
areArgumentsEqual(java.lang.Object argumentExpected,
java.lang.Object argumentActual)
A method to check that the class of the actual argument is the same as or a subclass of the expected argument. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ClassArgumentMatcher()
Method Detail |
---|
public boolean areArgumentsEqual(java.lang.Object argumentExpected, java.lang.Object argumentActual)
areArgumentsEqual
in interface IArgumentMatcher
argumentExpected
- The expected argument.argumentActual
- The actual argument.
true
if the actual argument can be cast to the class
of the expected argument.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |