Class AtomicBooleanAssert
java.lang.Object
org.assertj.core.api.AbstractAssert<AtomicBooleanAssert, AtomicBoolean>
org.assertj.core.api.AtomicBooleanAssert
- All Implemented Interfaces:
Assert<AtomicBooleanAssert, AtomicBoolean>, Descriptable<AtomicBooleanAssert>, ExtensionPoints<AtomicBooleanAssert, AtomicBoolean>
-
Field Summary
Fields inherited from class AbstractAssert
actual, info, myself, objects, throwUnsupportedExceptionOnEquals -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionisFalse()Verifies that the actual atomic value is false.isTrue()Verifies that the actual atomic value is true.usingComparator(Comparator<? super AtomicBoolean> customComparator) Deprecated.Custom Comparator is not supported for Boolean comparison.usingComparator(Comparator<? super AtomicBoolean> customComparator, String customComparatorDescription) Deprecated.Custom Comparator is not supported for Boolean comparison.Methods inherited from class AbstractAssert
actual, areEqual, asInstanceOf, asList, assertionError, asString, describedAs, descriptionText, doesNotHave, doesNotHaveSameClassAs, doesNotHaveSameHashCodeAs, doesNotHaveToString, doesNotHaveToString, doesNotMatch, doesNotMatch, equals, extracting, extracting, failure, failureWithActualExpected, failWithActualExpectedAndMessage, failWithMessage, getWritableAssertionInfo, has, hashCode, hasSameClassAs, hasSameHashCodeAs, hasToString, hasToString, inBinary, inHexadecimal, is, isElementOfCustomAssert, isEqualTo, isExactlyInstanceOf, isIn, isIn, isInstanceOf, isInstanceOfAny, isInstanceOfSatisfying, isNot, isNotEqualTo, isNotExactlyInstanceOf, isNotIn, isNotIn, isNotInstanceOf, isNotInstanceOfAny, isNotNull, isNotOfAnyClassIn, isNotSameAs, isNull, isOfAnyClassIn, isSameAs, matches, matches, newListAssertInstance, overridingErrorMessage, overridingErrorMessage, satisfies, satisfies, satisfies, satisfiesAnyOf, satisfiesAnyOf, satisfiesAnyOfForProxy, satisfiesForProxy, setCustomRepresentation, setDescriptionConsumer, setPrintAssertionsDescription, throwAssertionError, usingDefaultComparator, usingEquals, usingEquals, usingRecursiveAssertion, usingRecursiveAssertion, usingRecursiveComparison, usingRecursiveComparison, withFailMessage, withFailMessage, withRepresentation, withThreadDumpOnErrorMethods inherited from class Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Descriptable
as, as, as, describedAs, describedAs
-
Constructor Details
-
AtomicBooleanAssert
-
-
Method Details
-
isTrue
Verifies that the actual atomic value is true.Example:
// assertion will pass assertThat(new AtomicBoolean(true)).isTrue(); // assertion will fail assertThat(new AtomicBoolean(false)).isTrue();- Returns:
- this assertion object.
- Throws:
AssertionError- if the actual atomic isnull.AssertionError- if the actual atomic value is false.- Since:
- 2.7.0 / 3.7.0
-
isFalse
Verifies that the actual atomic value is false.Example:
// assertion will pass assertThat(new AtomicBoolean(false)).isFalse(); // assertion will fail assertThat(new AtomicBoolean(true)).isFalse();- Returns:
- this assertion object.
- Throws:
AssertionError- if the actual atomic isnull.AssertionError- if the actual atomic value is true.- Since:
- 2.7.0 / 3.7.0
-
usingComparator
@Deprecated public AtomicBooleanAssert usingComparator(Comparator<? super AtomicBoolean> customComparator) Deprecated.Custom Comparator is not supported for Boolean comparison.Do not use this method.- Specified by:
usingComparatorin interfaceAssert<AtomicBooleanAssert, AtomicBoolean>- Overrides:
usingComparatorin classAbstractAssert<AtomicBooleanAssert, AtomicBoolean>- Parameters:
customComparator- the comparator to use for the incoming assertion checks.- Returns:
thisassertion object.- Throws:
UnsupportedOperationException- if this method is called.
-
usingComparator
@Deprecated public AtomicBooleanAssert usingComparator(Comparator<? super AtomicBoolean> customComparator, String customComparatorDescription) Deprecated.Custom Comparator is not supported for Boolean comparison.Do not use this method.- Specified by:
usingComparatorin interfaceAssert<AtomicBooleanAssert, AtomicBoolean>- Overrides:
usingComparatorin classAbstractAssert<AtomicBooleanAssert, AtomicBoolean>- Parameters:
customComparator- the comparator to use for the incoming assertion checks.customComparatorDescription- comparator description to be used in assertion error messages- Returns:
thisassertion object.- Throws:
UnsupportedOperationException- if this method is called.
-