public final class TestUtils
extends junit.framework.Assert
Modifier and Type | Method and Description |
---|---|
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.
|
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
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 valuepublic 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 valuepublic 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 onlypublic 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 arrayspublic 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 valueCopyright © 2017. All rights reserved.