|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--edu.ucsb.ccs.jaqual.standard.InstanceOf
Assertion to check if an object is an instance of a certain class type.
Example use:
ForAll.in(elements).ensure(new InstanceOf(Integer.class));
| Constructor Summary | |
InstanceOf(java.lang.Class clazz)
Create a new assertion. |
|
| Method Summary | |
boolean |
eval(java.lang.Object o)
Test an object to see if it is an instance of the target class. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public InstanceOf(java.lang.Class clazz)
clazz - the cass to match instances of.| Method Detail |
public boolean eval(java.lang.Object o)
eval in interface Assertiono - the object to test.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||