Package org.assertj.core.api
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>
public class AtomicBooleanAssert extends AbstractAssert<AtomicBooleanAssert,AtomicBoolean>
-
-
Field Summary
-
Fields inherited from class org.assertj.core.api.AbstractAssert
actual, info, myself
-
-
Constructor Summary
Constructors Constructor Description AtomicBooleanAssert(AtomicBoolean actual)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description AtomicBooleanAssertisFalse()Verifies that the actual atomic value is false.AtomicBooleanAssertisTrue()Verifies that the actual atomic value is true.AtomicBooleanAssertusingComparator(Comparator<? super AtomicBoolean> customComparator)Deprecated.Custom Comparator is not supported for Boolean comparison.-
Methods inherited from class org.assertj.core.api.AbstractAssert
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, isInstanceOfSatisfying, isNot, isNotEqualTo, isNotExactlyInstanceOf, isNotIn, isNotIn, isNotInstanceOf, isNotInstanceOfAny, isNotNull, isNotOfAnyClassIn, isNotSameAs, isNull, isOfAnyClassIn, isSameAs, matches, matches, overridingErrorMessage, satisfies, setCustomRepresentation, throwAssertionError, usingDefaultComparator, withFailMessage, withRepresentation, withThreadDumpOnError
-
-
-
-
Constructor Detail
-
AtomicBooleanAssert
public AtomicBooleanAssert(AtomicBoolean actual)
-
-
Method Detail
-
isTrue
public AtomicBooleanAssert 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
public AtomicBooleanAssert 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 incoming assertion checks.- Returns:
thisassertion object.- Throws:
UnsupportedOperationException- if this method is called.
-
-