Package org.assertj.core.api
Class AtomicStampedReferenceAssert<VALUE>
java.lang.Object
org.assertj.core.api.AbstractAssert<SELF,ACTUAL>
org.assertj.core.api.AbstractObjectAssert<SELF,ATOMIC>
org.assertj.core.api.AbstractAtomicReferenceAssert<AtomicStampedReferenceAssert<VALUE>,VALUE,AtomicStampedReference<VALUE>>
org.assertj.core.api.AtomicStampedReferenceAssert<VALUE>
- All Implemented Interfaces:
Assert<AtomicStampedReferenceAssert<VALUE>,
,AtomicStampedReference<VALUE>> Descriptable<AtomicStampedReferenceAssert<VALUE>>
,ExtensionPoints<AtomicStampedReferenceAssert<VALUE>,
AtomicStampedReference<VALUE>>
public class AtomicStampedReferenceAssert<VALUE>
extends AbstractAtomicReferenceAssert<AtomicStampedReferenceAssert<VALUE>,VALUE,AtomicStampedReference<VALUE>>
Assertion methods for
AtomicStampedReference
s.
To create an instance of this class, invoke
.
Assertions.assertThat(AtomicStampedReference)
- Since:
- 2.7.0 / 3.7.0
- Author:
- epeee
-
Field Summary
Fields inherited from class org.assertj.core.api.AbstractAssert
actual, info, myself, objects, throwUnsupportedExceptionOnEquals
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected VALUE
hasReference
(VALUE expectedValue) Verifies that the actualAtomicStampedReference
contains the given value.hasStamp
(int expectedStamp) Verifies that the actualAtomicStampedReference
has the given stamp.Methods inherited from class org.assertj.core.api.AbstractObjectAssert
as, as, doesNotReturn, extracting, extracting, extracting, extracting, extracting, extracting, extractingForProxy, getComparatorsByType, hasAllNullFieldsOrProperties, hasAllNullFieldsOrPropertiesExcept, hasFieldOrProperty, hasFieldOrPropertyWithValue, hasNoNullFieldsOrProperties, hasNoNullFieldsOrPropertiesExcept, hasOnlyFields, isEqualToComparingFieldByField, isEqualToComparingFieldByFieldRecursively, isEqualToComparingOnlyGivenFields, isEqualToIgnoringGivenFields, isEqualToIgnoringNullFields, newObjectAssert, returns, usingComparatorForFields, usingComparatorForType, usingRecursiveComparison, usingRecursiveComparison
Methods inherited from class org.assertj.core.api.AbstractAssert
areEqual, asInstanceOf, asList, assertionError, asString, describedAs, descriptionText, doesNotHave, doesNotHaveSameClassAs, doesNotHaveSameHashCodeAs, doesNotHaveToString, equals, extracting, extracting, failure, failureWithActualExpected, failWithActualExpectedAndMessage, failWithMessage, getWritableAssertionInfo, has, hashCode, hasSameClassAs, hasSameHashCodeAs, 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, usingComparator, usingComparator, usingDefaultComparator, withFailMessage, 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, describedAs
-
Constructor Details
-
AtomicStampedReferenceAssert
-
-
Method Details
-
hasReference
Verifies that the actualAtomicStampedReference
contains the given value.Example:
AtomicStampedReferenceAssert<String> ref = new AtomicStampedReferenceAssert<>("foo", 123); // this assertion succeeds: assertThat(ref).hasValue("foo"); // this assertion fails: assertThat(ref).hasValue("bar");
- Overrides:
hasReference
in classAbstractAtomicReferenceAssert<AtomicStampedReferenceAssert<VALUE>,
VALUE, AtomicStampedReference<VALUE>> - Parameters:
expectedValue
- the expected value inside theAtomicStampedReference
.- Returns:
- this assertion object.
- Since:
- 2.7.0 / 3.7.0
-
getReference
- Specified by:
getReference
in classAbstractAtomicReferenceAssert<AtomicStampedReferenceAssert<VALUE>,
VALUE, AtomicStampedReference<VALUE>>
-
hasStamp
Verifies that the actualAtomicStampedReference
has the given stamp. Examples:// this assertion succeeds: assertThat(new AtomicStampedReference<>("actual", 1234)).hasStamp(1234); // this assertion fails: assertThat(new AtomicStampedReference<>("actual", 1234)).hasStamp(5678);
- Parameters:
expectedStamp
- the expected stamp inside theAtomicStampedReference
.- Returns:
- this assertion object.
- Since:
- 2.7.0 / 3.7.0
-