|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jaggregate.junit.framework.ObjectAssert
public class ObjectAssert
Additional assertions for JUnit that apply to Java objects in general.
Method Summary | ||
---|---|---|
static
|
assertMatches(T target,
UnaryCondition<? super T> constraint)
Asserts that a given object satisfies a given constraint. |
|
static
|
assertThat(T target,
UnaryPredicate<? super T> constraint)
Asserts that a given object satisfies a given constraint. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static <T> void assertThat(T target, UnaryPredicate<? super T> constraint)
T
- a restriction on the type of the target objecttarget
- the object to queryconstraint
- the constraint that target
must satisfy
AssertionFailedError
- if the constraint is not satisfiedassertThat()
public static <T> void assertMatches(T target, UnaryCondition<? super T> constraint)
T
- a restriction on the type of the target objecttarget
- the object to queryconstraint
- the constraint that target
must satisfy
AssertionFailedError
- if the constraint is not satisfiedassertThat()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |