|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.fest.assertions.internal.Conditions
public class Conditions
Verifies that a value satisfies a
.
Condition
Method Summary | ||
---|---|---|
|
assertDoesNotHave(AssertionInfo info,
T actual,
Condition<T> condition)
Asserts that the actual value does not satisfy the given . |
|
|
assertHas(AssertionInfo info,
T actual,
Condition<T> condition)
Asserts that the actual value satisfies the given . |
|
|
assertIs(AssertionInfo info,
T actual,
Condition<T> condition)
Asserts that the actual value satisfies the given . |
|
|
assertIsNot(AssertionInfo info,
T actual,
Condition<T> condition)
Asserts that the actual value does not satisfy the given . |
|
void |
assertIsNotNull(Condition<?> condition)
Asserts the the given is not null. |
|
static Conditions |
instance()
Returns the singleton instance of this class. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static Conditions instance()
public <T> void assertIs(AssertionInfo info, T actual, Condition<T> condition)
Condition
.
T
- the type of the actual value and the type of values that given Condition
takes.info
- contains information about the assertion.actual
- the actual value.condition
- the given Condition
.
NullPointerException
- if the given Condition
is null
.
AssertionError
- if the actual value does not satisfy the given Condition
.public <T> void assertIsNot(AssertionInfo info, T actual, Condition<T> condition)
Condition
.
T
- the type of the actual value and the type of values that given Condition
takes.info
- contains information about the assertion.actual
- the actual value.condition
- the given Condition
.
NullPointerException
- if the given Condition
is null
.
AssertionError
- if the actual value satisfies the given Condition
.public <T> void assertHas(AssertionInfo info, T actual, Condition<T> condition)
Condition
.
T
- the type of the actual value and the type of values that given Condition
takes.info
- contains information about the assertion.actual
- the actual value.condition
- the given Condition
.
NullPointerException
- if the given Condition
is null
.
AssertionError
- if the actual value does not satisfy the given Condition
.public <T> void assertDoesNotHave(AssertionInfo info, T actual, Condition<T> condition)
Condition
.
T
- the type of the actual value and the type of values that given Condition
takes.info
- contains information about the assertion.actual
- the actual value.condition
- the given Condition
.
NullPointerException
- if the given Condition
is null
.
AssertionError
- if the actual value satisfies the given Condition
.public void assertIsNotNull(Condition<?> condition)
Condition
is not null.
condition
- the given Condition
.
NullPointerException
- if the given Condition
is null
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |