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 forAtomicStampedReference
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, assertionErrorCreator, conditions, info, myself, objects, throwUnsupportedExceptionOnEquals
-
-
Constructor Summary
Constructors Constructor Description AtomicStampedReferenceAssert(AtomicStampedReference<VALUE> actual)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected VALUE
getReference()
AtomicStampedReferenceAssert<VALUE>
hasReference(VALUE expectedValue)
Verifies that the actualAtomicStampedReference
contains the given value.AtomicStampedReferenceAssert<VALUE>
hasStamp(int expectedStamp)
Verifies that the actualAtomicStampedReference
has the given stamp.-
Methods inherited from class org.assertj.core.api.AbstractObjectAssert
as, as, extracting, extracting, extracting, extracting, extracting, extracting, getComparatorsByType, hasAllNullFieldsOrProperties, hasAllNullFieldsOrPropertiesExcept, hasFieldOrProperty, hasFieldOrPropertyWithValue, hasNoNullFieldsOrProperties, hasNoNullFieldsOrPropertiesExcept, hasOnlyFields, isEqualToComparingFieldByField, isEqualToComparingFieldByFieldRecursively, isEqualToComparingOnlyGivenFields, isEqualToIgnoringGivenFields, isEqualToIgnoringNullFields, newObjectAssert, returns, usingComparatorForFields, usingComparatorForType, usingRecursiveComparison, usingRecursiveComparison, withAssertionState, withComparatorByPropertyOrField, withTypeComparator
-
Methods inherited from class org.assertj.core.api.AbstractAssert
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, satisfiesAnyOf, satisfiesAnyOf, satisfiesAnyOf, 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 Detail
-
AtomicStampedReferenceAssert
public AtomicStampedReferenceAssert(AtomicStampedReference<VALUE> actual)
-
-
Method Detail
-
hasReference
public AtomicStampedReferenceAssert<VALUE> hasReference(VALUE expectedValue)
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
protected VALUE getReference()
- Specified by:
getReference
in classAbstractAtomicReferenceAssert<AtomicStampedReferenceAssert<VALUE>,VALUE,AtomicStampedReference<VALUE>>
-
hasStamp
public AtomicStampedReferenceAssert<VALUE> hasStamp(int expectedStamp)
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
-
-