|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.darwinsys.testing.TestUtils
public class TestUtils
| Constructor Summary | |
|---|---|
TestUtils()
|
|
| Method Summary | |
|---|---|
static void |
assertNoDefaultProperties(java.lang.Object o)
A JUnit-like assertion method that uses reflection to ensure that no properties have default values; useful for testing (possibly large) Constructors to ensure that all properties are being set (and set correctly, e.g., gotta love those copy-and-paste errors in legacy constructors that are set by hand...). |
static boolean |
equals(java.lang.Object o1,
java.lang.Object o2)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TestUtils()
| Method Detail |
|---|
public static boolean equals(java.lang.Object o1,
java.lang.Object o2)
public static void assertNoDefaultProperties(java.lang.Object o)
throws java.lang.Exception
o - The object (of any type) to be tested.
java.lang.Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||