public class AtomicBooleanAssert extends AbstractAssert<AtomicBooleanAssert,AtomicBoolean>
actual, info, myself, throwUnsupportedExceptionOnEquals
Constructor and Description |
---|
AtomicBooleanAssert(AtomicBoolean actual) |
Modifier and Type | Method and Description |
---|---|
AtomicBooleanAssert |
isFalse()
Verifies that the actual atomic value is false.
|
AtomicBooleanAssert |
isTrue()
Verifies that the actual atomic value is true.
|
AtomicBooleanAssert |
usingComparator(Comparator<? super AtomicBoolean> customComparator)
Deprecated.
Custom Comparator is not supported for Boolean comparison.
|
AtomicBooleanAssert |
usingComparator(Comparator<? super AtomicBoolean> customComparator,
String customComparatorDescription)
Deprecated.
Custom Comparator is not supported for Boolean comparison.
|
as, as, asList, asString, describedAs, describedAs, descriptionText, doesNotHave, doesNotHaveSameClassAs, equals, failWithMessage, getWritableAssertionInfo, has, hashCode, hasSameClassAs, hasSameHashCodeAs, hasToString, inBinary, inHexadecimal, is, isEqualTo, isExactlyInstanceOf, isIn, isIn, isInstanceOf, isInstanceOfAny, isInstanceOfSatisfying, isNot, isNotEqualTo, isNotExactlyInstanceOf, isNotIn, isNotIn, isNotInstanceOf, isNotInstanceOfAny, isNotNull, isNotOfAnyClassIn, isNotSameAs, isNull, isOfAnyClassIn, isSameAs, matches, matches, newListAssertInstance, overridingErrorMessage, satisfies, satisfies, satisfiesAnyOf, satisfiesAnyOf, setCustomRepresentation, throwAssertionError, usingDefaultComparator, withFailMessage, withRepresentation, withThreadDumpOnError
public AtomicBooleanAssert(AtomicBoolean actual)
public AtomicBooleanAssert isTrue()
Example:
// assertion will pass
assertThat(new AtomicBoolean(true)).isTrue();
// assertion will fail
assertThat(new AtomicBoolean(false)).isTrue();
AssertionError
- if the actual atomic is null
.AssertionError
- if the actual atomic value is false.public AtomicBooleanAssert isFalse()
Example:
// assertion will pass
assertThat(new AtomicBoolean(false)).isFalse();
// assertion will fail
assertThat(new AtomicBoolean(true)).isFalse();
AssertionError
- if the actual atomic is null
.AssertionError
- if the actual atomic value is true.@Deprecated public AtomicBooleanAssert usingComparator(Comparator<? super AtomicBoolean> customComparator)
usingComparator
in interface Assert<AtomicBooleanAssert,AtomicBoolean>
usingComparator
in class AbstractAssert<AtomicBooleanAssert,AtomicBoolean>
customComparator
- the comparator to use for the incoming assertion checks.this
assertion object.UnsupportedOperationException
- if this method is called.@Deprecated public AtomicBooleanAssert usingComparator(Comparator<? super AtomicBoolean> customComparator, String customComparatorDescription)
usingComparator
in interface Assert<AtomicBooleanAssert,AtomicBoolean>
usingComparator
in class AbstractAssert<AtomicBooleanAssert,AtomicBoolean>
customComparator
- the comparator to use for the incoming assertion checks.customComparatorDescription
- comparator description to be used in assertion error messagesthis
assertion object.UnsupportedOperationException
- if this method is called.Copyright © 2014–2019 AssertJ. All rights reserved.