| Constructor and Description |
|---|
BooleanCondition(boolean value)
Creates a new instance of
BooleanCondition. |
| Modifier and Type | Method and Description |
|---|---|
void |
isFalse()
Ensures that the given condition is
false. |
void |
isFalse(String explanation,
Object... args)
Ensures that the given condition is
false. |
void |
isTrue()
Ensures that the given condition is
true. |
void |
isTrue(String explanation,
Object... args)
Ensures that the given condition is
true. |
public BooleanCondition(boolean value)
BooleanCondition.value - value of the condition@FormatMethod public void isFalse(String explanation, Object... args)
false.explanation - a formatted message explaining the assertionargs - Arguments referenced by the format specifiers in the formatted explanation. If there are more
arguments than format specifiers, the extra arguments are ignored. The number of arguments is
variable and may be zero.AssertionError - if the condition is truepublic void isFalse()
false.AssertionError - if the condition is true@FormatMethod public void isTrue(String explanation, Object... args)
true.explanation - a formatted message explaining the assertionargs - Arguments referenced by the format specifiers in the formatted explanation. If there are more
arguments than format specifiers, the extra arguments are ignored. The number of arguments is
variable and may be zero.AssertionError - if the condition is falsepublic void isTrue()
true.AssertionError - if the condition is falseCopyright © 2018. All rights reserved.