Constructor and Description |
---|
Condition()
Creates a new
. |
Condition(String description)
Creates a new
. |
Modifier and Type | Method and Description |
---|---|
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.
|
public Condition()
Condition
.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.Copyright © 2007-2012 FEST (Fixtures for Easy Software Testing). All Rights Reserved.