|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.fest.assertions.Condition<T>
T - the type of Object this condition accepts.public abstract class Condition<T>
Condition to be met by an .
Object
| Constructor Summary | |
|---|---|
Condition()
Creates a new . |
|
Condition(String description)
Creates a new . |
|
| Method Summary | |
|---|---|
Condition<T> |
as(String newDescription)
Sets the description of this condition. |
String |
description()
Returns the description of this condition, if any. |
abstract boolean |
matches(T value)
Verifies that the given value satisfies this condition. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Condition()
Condition.
public Condition(String description)
Condition.
description - the description of this condition.| Method Detail |
|---|
public final Condition<T> as(String newDescription)
newDescription - the description to set.
public final String description()
public abstract boolean matches(T value)
value - the value to verify.
true if the given value satisfies this condition, false otherwise.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||