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, assertionErrorCreator, conditions, info, myself, objects, throwUnsupportedExceptionOnEquals
-
-
Constructor Summary
Constructors Constructor Description AtomicReferenceAssert(AtomicReference<V> actual)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AtomicReferenceAssert<V>
doesNotHaveValue(V nonExpectedValue)
Verifies that the actual atomic has not the given value.AtomicReferenceAssert<V>
hasValue(V expectedValue)
Verifies that the actual atomic has the given value.-
Methods inherited from class org.assertj.core.api.AbstractAssert
asInstanceOf, asList, assertionError, asString, describedAs, descriptionText, doesNotHave, doesNotHaveSameClassAs, equals, extracting, extracting, failWithActualExpectedAndMessage, 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, satisfiesAnyOf, setCustomRepresentation, throwAssertionError, usingComparator, usingComparator, usingDefaultComparator, usingRecursiveComparison, usingRecursiveComparison, withAssertionState, withFailMessage, withRepresentation, withThreadDumpOnError
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.assertj.core.api.Descriptable
as, as, describedAs
-
-
-
-
Constructor Detail
-
AtomicReferenceAssert
public AtomicReferenceAssert(AtomicReference<V> actual)
-
-
Method Detail
-
hasValue
public AtomicReferenceAssert<V> hasValue(V expectedValue)
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");
- Parameters:
expectedValue
- the expected value.- 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
public AtomicReferenceAssert<V> doesNotHaveValue(V nonExpectedValue)
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");
- Parameters:
nonExpectedValue
- the value not expected.- 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
-
-