public class AtomicMarkableReferenceAssert<VALUE> extends AbstractAtomicReferenceAssert<AtomicMarkableReferenceAssert<VALUE>,VALUE,AtomicMarkableReference<VALUE>>
AtomicMarkableReference
s.
To create an instance of this class, invoke
.
Assertions.assertThat(AtomicMarkableReference)
actual, info, myself, throwUnsupportedExceptionOnEquals
Constructor and Description |
---|
AtomicMarkableReferenceAssert(AtomicMarkableReference<VALUE> actual) |
Modifier and Type | Method and Description |
---|---|
protected VALUE |
getReference() |
AtomicMarkableReferenceAssert<VALUE> |
hasReference(VALUE expectedValue)
Verifies that the actual
AtomicMarkableReference contains the given value. |
AtomicMarkableReferenceAssert<VALUE> |
isMarked()
Verifies that the actual
AtomicMarkableReference is marked. |
AtomicMarkableReferenceAssert<VALUE> |
isNotMarked()
Verifies that the actual
AtomicMarkableReference is not marked. |
as, as, extracting, extracting, extracting, getComparatorsByType, hasAllNullFieldsOrProperties, hasAllNullFieldsOrPropertiesExcept, hasFieldOrProperty, hasFieldOrPropertyWithValue, hasNoNullFieldsOrProperties, hasNoNullFieldsOrPropertiesExcept, isEqualToComparingFieldByField, isEqualToComparingFieldByFieldRecursively, isEqualToComparingOnlyGivenFields, isEqualToIgnoringGivenFields, isEqualToIgnoringNullFields, newObjectAssert, returns, usingComparatorForFields, usingComparatorForType, usingRecursiveComparison, usingRecursiveComparison
asList, asString, describedAs, describedAs, descriptionText, doesNotHave, doesNotHaveSameClassAs, equals, 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, setCustomRepresentation, throwAssertionError, usingComparator, usingComparator, usingDefaultComparator, withFailMessage, withRepresentation, withThreadDumpOnError
public AtomicMarkableReferenceAssert(AtomicMarkableReference<VALUE> actual)
public AtomicMarkableReferenceAssert<VALUE> hasReference(VALUE expectedValue)
AtomicMarkableReference
contains the given value.
Example:
AtomicMarkableReference<String> ref = new AtomicMarkableReference<>("foo", true);
// this assertion succeeds:
assertThat(ref).hasValue("foo");
// this assertion fails:
assertThat(ref).hasValue("bar");
hasReference
in class AbstractAtomicReferenceAssert<AtomicMarkableReferenceAssert<VALUE>,VALUE,AtomicMarkableReference<VALUE>>
expectedValue
- the expected value inside the AtomicMarkableReference
.protected VALUE getReference()
getReference
in class AbstractAtomicReferenceAssert<AtomicMarkableReferenceAssert<VALUE>,VALUE,AtomicMarkableReference<VALUE>>
public AtomicMarkableReferenceAssert<VALUE> isMarked()
AtomicMarkableReference
is marked.
Examples:
// this assertion succeeds:
assertThat(new AtomicMarkableReference<>("actual", true)).isMarked();
// this assertion fails:
assertThat(new AtomicMarkableReference<>("actual", false)).isMarked();
public AtomicMarkableReferenceAssert<VALUE> isNotMarked()
AtomicMarkableReference
is not marked.
Examples:
// this assertion succeeds:
assertThat(new AtomicMarkableReference<>("actual", false)).isNotMarked();
// this assertion fails:
assertThat(new AtomicMarkableReference<>("actual", true)).isNotMarked();
Copyright © 2014–2019 AssertJ. All rights reserved.