|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jdesktop.test.matchers.Matchers
public final class Matchers
A collection of matchers useful for testing.
| Constructor Summary | |
|---|---|
Matchers()
|
|
| Method Summary | ||
|---|---|---|
static org.hamcrest.Matcher<PropertyChangeEvent> |
anyProperty()
A matcher for any property change. |
|
static
|
equivalentTo(T object)
This matcher returns true when the arguments are equivalent. |
|
static org.hamcrest.Matcher<PropertyChangeEvent> |
property(String propertyName,
Object oldValue,
Object newValue)
A matcher for a specified property. |
|
static org.hamcrest.Matcher<PropertyChangeEvent> |
propertyWithName(String propertyName)
A matcher for a specified property. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Matchers()
| Method Detail |
|---|
public static org.hamcrest.Matcher<PropertyChangeEvent> anyProperty()
true if any property can be matched; false otherwisepublic static org.hamcrest.Matcher<PropertyChangeEvent> propertyWithName(String propertyName)
propertyName - the name of the property to match
true if the property exists and has a name that matches the specified name;
false otherwise
public static org.hamcrest.Matcher<PropertyChangeEvent> property(String propertyName,
Object oldValue,
Object newValue)
propertyName - the name of the property to matcholdValue - the old property valuenewValue - the new property value
true if the property exists and all parameters match the specified values;
false otherwisepublic static <T> org.hamcrest.Matcher<T> equivalentTo(T object)
true when the arguments are equivalent.
For purposes of this matcher equivalence is as follows:
class
info for each object instance returns equivalent values
T - the type of the matcherobject - the object to test
true if the object is equivalent; false otherwise
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||