|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjunit.framework.Assert
org.jdesktop.test.TestUtils
public final class TestUtils
Extends assert to get all the ease-of-use assert methods
| Method Summary | |
|---|---|
static void |
assertContainsType(Object[] objects,
Class<?> clazz,
int count)
|
static void |
assertPropertyChangeEvent(PropertyChangeReport report,
Object source,
String property,
Object oldValue,
Object newValue)
Asserts the last received propertyChangeEvent of the report against the expected values. |
static void |
assertPropertyChangeEvent(PropertyChangeReport report,
String property,
Object[] oldValue,
Object[] newValue)
Asserts the last received propertyChangeEvent of the report against the expected values (arrays). |
static void |
assertPropertyChangeEvent(PropertyChangeReport report,
String property,
Object oldValue,
Object newValue)
Asserts the last received propertyChangeEvent of the report against the expected values. |
static void |
assertPropertyChangeEvent(PropertyChangeReport report,
String property,
Object oldValue,
Object newValue,
boolean single)
Asserts the last received propertyChangeEvent of the report against the expected values. |
static void |
assertPropertyChangeEvent(PropertyChangeReport report,
String property,
Object oldValue,
Object newValue,
boolean single,
boolean verifyArrayItems)
Asserts the last received propertyChangeEvent of the report against the expected values. |
| Methods inherited from class junit.framework.Assert |
|---|
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame, format |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static void assertContainsType(Object[] objects,
Class<?> clazz,
int count)
public static void assertPropertyChangeEvent(PropertyChangeReport report,
Object source,
String property,
Object oldValue,
Object newValue)
report - the PropertyReport which received the eventsource - the expected event sourceproperty - the expected name of the propertyoldValue - the expected old valuenewValue - the expected new value
public static void assertPropertyChangeEvent(PropertyChangeReport report,
String property,
Object oldValue,
Object newValue)
report - the PropertyReport which received the eventproperty - the expected name of the propertyoldValue - the expected old valuenewValue - the expected new value
public static void assertPropertyChangeEvent(PropertyChangeReport report,
String property,
Object oldValue,
Object newValue,
boolean single)
report - the PropertyReport which received the eventproperty - the expected name of the propertyoldValue - the expected old valuenewValue - the expected new valuesingle - flag to denote if we expect one event only
public static void assertPropertyChangeEvent(PropertyChangeReport report,
String property,
Object oldValue,
Object newValue,
boolean single,
boolean verifyArrayItems)
report - the PropertyReport which received the eventproperty - the expected name of the propertyoldValue - the expected old valuenewValue - the expected new valuesingle - flag to denote if we expect one event onlyverifyArrayItems - check array items one by one rather then whole arrays
public static void assertPropertyChangeEvent(PropertyChangeReport report,
String property,
Object[] oldValue,
Object[] newValue)
report - the PropertyReport which received the eventproperty - the expected name of the propertyoldValue - the expected old aray valuenewValue - the expected new array value
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||