Package org.assertj.core.api
Class AtomicReferenceAssert<V>
java.lang.Object
org.assertj.core.api.AbstractAssert<AtomicReferenceAssert<V>,AtomicReference<V>>
org.assertj.core.api.AtomicReferenceAssert<V>
- All Implemented Interfaces:
Assert<AtomicReferenceAssert<V>,
,AtomicReference<V>> Descriptable<AtomicReferenceAssert<V>>
,ExtensionPoints<AtomicReferenceAssert<V>,
AtomicReference<V>>
public class AtomicReferenceAssert<V>
extends AbstractAssert<AtomicReferenceAssert<V>,AtomicReference<V>>
-
Field Summary
Fields inherited from class org.assertj.core.api.AbstractAssert
actual, conditions, info, myself, objects
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoesNotHaveValue
(V expectedValue) Verifies that the actual atomic has not the given value.Verifies that the actual atomic has the given value.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, usingComparator, usingDefaultComparator, withFailMessage, withRepresentation, withThreadDumpOnError
-
Constructor Details
-
AtomicReferenceAssert
-
-
Method Details
-
hasValue
Verifies that the actual atomic has the given value.Example:
// assertion will pass assertThat(new AtomicReference("foo")).hasValue("foo"); // assertion will fail assertThat(new AtomicReference("foo")).hasValue("bar");
- Returns:
this
assertion object.- Throws:
AssertionError
- if the actual atomic isnull
.AssertionError
- if the actual atomic does not have the given value.- Since:
- 2.7.0 / 3.7.0
-
doesNotHaveValue
Verifies that the actual atomic has not the given value.Example:
// assertion will pass assertThat(new AtomicReference("foo")).doesNotHaveValue("bar"); // assertion will fail assertThat(new AtomicReference("foo")).doesNotHaveValue("foo");
- Returns:
this
assertion object.- Throws:
AssertionError
- if the actual atomic isnull
.AssertionError
- if the actual atomic has the given value.- Since:
- 2.7.0 / 3.7.0
-