Package org.assertj.core.api
Class AtomicStampedReferenceAssert<VALUE>
java.lang.Object
org.assertj.core.api.AbstractAssert<AtomicStampedReferenceAssert<VALUE>,AtomicStampedReference<VALUE>>
org.assertj.core.api.AbstractObjectAssert<AtomicStampedReferenceAssert<VALUE>,AtomicStampedReference<VALUE>>
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
AtomicStampedReferences.
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected VALUEhasReference(VALUE expectedValue) Verifies that the actualAtomicStampedReferencecontains the given value.hasStamp(int expectedStamp) Verifies that the actualAtomicStampedReferencehas 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, usingRecursiveAssertion, usingRecursiveAssertion, usingRecursiveComparison, usingRecursiveComparisonMethods inherited from class org.assertj.core.api.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, usingComparator, usingComparator, usingDefaultComparator, usingEquals, usingEquals, withFailMessage, withFailMessage, withRepresentation, withThreadDumpOnErrorMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.assertj.core.api.Descriptable
as, describedAs, describedAs
-
Constructor Details
-
AtomicStampedReferenceAssert
-
-
Method Details
-
hasReference
Verifies that the actualAtomicStampedReferencecontains 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:
hasReferencein 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:
getReferencein classAbstractAtomicReferenceAssert<AtomicStampedReferenceAssert<VALUE>,VALUE, AtomicStampedReference<VALUE>>
-
hasStamp
Verifies that the actualAtomicStampedReferencehas 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
-