S - the "self" type of this assertion class. Please read "Emulating 'self types' using Java Generics to simplify fluent API implementation"
for more details.public abstract class AbstractBooleanAssert<S extends AbstractBooleanAssert<S>> extends AbstractAssert<S,Boolean>
Booleans.actual, info, myself| Modifier | Constructor and Description |
|---|---|
protected |
AbstractBooleanAssert(Boolean actual,
Class<?> selfType) |
| Modifier and Type | Method and Description |
|---|---|
S |
isEqualTo(boolean expected)
Verifies that the actual value is equal to the given one.
|
S |
isFalse()
Verifies that the actual value is
false. |
S |
isNotEqualTo(boolean other)
Verifies that the actual value is not equal to the given one.
|
S |
isTrue()
Verifies that the actual value is
true. |
S |
usingComparator(Comparator<? super Boolean> customComparator)
Deprecated.
Custom Comparator is not supported for Boolean comparison.
|
as, as, asList, asString, describedAs, describedAs, descriptionText, doesNotHave, doesNotHaveSameClassAs, equals, failWithMessage, getWritableAssertionInfo, has, hashCode, hasSameClassAs, hasToString, inBinary, inHexadecimal, is, isEqualTo, isExactlyInstanceOf, isIn, isIn, isInstanceOf, isInstanceOfAny, isNot, isNotEqualTo, isNotExactlyInstanceOf, isNotIn, isNotIn, isNotInstanceOf, isNotInstanceOfAny, isNotNull, isNotOfAnyClassIn, isNotSameAs, isNull, isOfAnyClassIn, isSameAs, overridingErrorMessage, usingDefaultComparator, withThreadDumpOnErrorpublic S isTrue()
true.this assertion object.AssertionError - if the actual value is null.AssertionError - if the actual value is not true.public S isFalse()
false.this assertion object.AssertionError - if the actual value is null.AssertionError - if the actual value is not false.public S isEqualTo(boolean expected)
expected - the given value to compare the actual value to.this assertion object.AssertionError - if the actual value is null.AssertionError - if the actual value is not equal to the given one.public S isNotEqualTo(boolean other)
other - the given value to compare the actual value to.this assertion object.AssertionError - if the actual value is null.AssertionError - if the actual value is equal to the given one.@Deprecated public final S usingComparator(Comparator<? super Boolean> customComparator)
usingComparator in interface Assert<S extends AbstractBooleanAssert<S>,Boolean>usingComparator in class AbstractAssert<S extends AbstractBooleanAssert<S>,Boolean>customComparator - the comparator to use for incoming assertion checks.this assertion object.UnsupportedOperationException - if this method is called.Copyright © 2013-2015 AssertJ. All Rights Reserved.