|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.aries.unittest.junit.Assert
public class Assert
A library of useful assertion routines.
Constructor Summary | |
---|---|
Assert()
|
Method Summary | ||
---|---|---|
static
|
assertEqualsContract(T info,
T info2,
T info3)
This method asserts that the equals contract is upheld by type T. |
|
static
|
assertHashCodeEquals(T obj,
T obj2,
boolean equalObjects)
This method checks that the two objects have the same hashCode. |
|
static
|
assertHashCodeNotEquals(T obj,
T obj2)
This method makes sure that the hashCodes are not equal. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Assert()
Method Detail |
---|
public static <T> void assertHashCodeEquals(T obj, T obj2, boolean equalObjects)
T
- obj
- the first object.obj2
- the second object.equalObjects
- whether the objects are also equal.public static <T> void assertHashCodeNotEquals(T obj, T obj2)
T
- obj
- obj2
- public static <T> void assertEqualsContract(T info, T info2, T info3)
T
- info
- an instance of Tinfo2
- a different instance of T that is .equal to infoinfo3
- an instance of T that is not equal to info
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |