public class BooleanAssert extends GenericAssert<BooleanAssert,Boolean>
Booleans and booleans.
To create a new instance of this class invoke either or
Assertions.assertThat(Boolean).
Assertions.assertThat(boolean)
actual, myself| Modifier | Constructor and Description |
|---|---|
protected |
BooleanAssert(boolean actual)
Creates a new
. |
protected |
BooleanAssert(Boolean actual)
Creates a new
. |
| Modifier and Type | Method and Description |
|---|---|
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. |
as, as, describedAs, describedAs, doesNotSatisfy, is, isEqualTo, isIn, isIn, isNot, isNotEqualTo, isNotIn, isNotIn, isNotNull, isNotSameAs, isNull, isSameAs, overridingErrorMessage, satisfiescustomErrorMessage, description, description, description, equals, fail, fail, failIfCustomMessageIsSet, failIfCustomMessageIsSet, failure, formattedErrorMessage, hashCode, rawDescription, replaceDefaultErrorMessagesWithprotected BooleanAssert(boolean actual)
BooleanAssert.actual - the actual value to verify.protected BooleanAssert(Boolean actual)
BooleanAssert.actual - the actual value to verify.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.Copyright © 2007-2012 FEST (Fixtures for Easy Software Testing). All Rights Reserved.