|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.fest.assertions.Assert
org.fest.assertions.GenericAssert<BooleanAssert,Boolean>
org.fest.assertions.BooleanAssert
public class BooleanAssert
Assertions for Booleans and booleans.
To create a new instance of this class invoke either or
Assertions.assertThat(Boolean).
Assertions.assertThat(boolean)
| Field Summary |
|---|
| Fields inherited from class org.fest.assertions.GenericAssert |
|---|
actual, myself |
| Constructor Summary | |
|---|---|
protected |
BooleanAssert(boolean actual)
Creates a new . |
protected |
BooleanAssert(Boolean actual)
Creates a new . |
| Method Summary | |
|---|---|
BooleanAssert |
isEqualTo(boolean expected)
Verifies that the actual Boolean is equal to the given one. |
void |
isFalse()
Verifies that the actual Boolean value is false. |
BooleanAssert |
isNotEqualTo(boolean other)
Verifies that the actual Boolean is not equal to the given one. |
void |
isTrue()
Verifies that the actual Boolean value is true. |
| Methods inherited from class org.fest.assertions.GenericAssert |
|---|
as, as, describedAs, describedAs, doesNotSatisfy, is, isEqualTo, isIn, isIn, isNot, isNotEqualTo, isNotIn, isNotIn, isNotNull, isNotSameAs, isNull, isSameAs, overridingErrorMessage, satisfies |
| Methods inherited from class org.fest.assertions.Assert |
|---|
customErrorMessage, description, description, description, equals, fail, fail, failIfCustomMessageIsSet, failIfCustomMessageIsSet, failure, formattedErrorMessage, hashCode, rawDescription, replaceDefaultErrorMessagesWith |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected BooleanAssert(boolean actual)
BooleanAssert.
actual - the actual value to verify.protected BooleanAssert(Boolean actual)
BooleanAssert.
actual - the actual value to verify.| Method Detail |
|---|
public void isTrue()
Boolean value is true.
AssertionError - if the actual Boolean value is false.public void isFalse()
Boolean value is false.
AssertionError - if the actual Boolean value is true.public BooleanAssert isEqualTo(boolean expected)
Boolean is equal to the given one.
expected - the given boolean to compare the actual Boolean to.
AssertionError - if the actual Boolean is not equal to the given one.public BooleanAssert isNotEqualTo(boolean other)
Boolean is not equal to the given one.
other - the given boolean to compare the actual Boolean to.
AssertionError - if the actual Boolean is equal to the given one.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||