Package org.assertj.core.api
Class AtomicLongFieldUpdaterAssert<OBJECT>
java.lang.Object
org.assertj.core.api.AbstractAssert<SELF,ACTUAL>
org.assertj.core.api.AbstractObjectAssert<SELF,ATOMIC>
org.assertj.core.api.AbstractAtomicFieldUpdaterAssert<AtomicLongFieldUpdaterAssert<OBJECT>,Long,AtomicLongFieldUpdater<OBJECT>,OBJECT>
org.assertj.core.api.AtomicLongFieldUpdaterAssert<OBJECT>
- Type Parameters:
OBJECT
- the type of the object holding the updatable field.
- All Implemented Interfaces:
Assert<AtomicLongFieldUpdaterAssert<OBJECT>,
,AtomicLongFieldUpdater<OBJECT>> Descriptable<AtomicLongFieldUpdaterAssert<OBJECT>>
,ExtensionPoints<AtomicLongFieldUpdaterAssert<OBJECT>,
AtomicLongFieldUpdater<OBJECT>>
public class AtomicLongFieldUpdaterAssert<OBJECT>
extends AbstractAtomicFieldUpdaterAssert<AtomicLongFieldUpdaterAssert<OBJECT>,Long,AtomicLongFieldUpdater<OBJECT>,OBJECT>
Assertion methods for
AtomicLongFieldUpdater
s.
To create an instance of this class, invoke
.
Assertions.assertThat(AtomicLongFieldUpdater)
- 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 Long
getActualValue
(OBJECT obj) Verifies that the actual atomic field updater contains the given value at the given object.Methods inherited from class org.assertj.core.api.AbstractAtomicFieldUpdaterAssert
validate
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, 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
-
AtomicLongFieldUpdaterAssert
-
-
Method Details
-
hasValue
Verifies that the actual atomic field updater contains the given value at the given object.Example:
// person is an instance of a Person class holding a non-private volatile long field (age). AtomicIntegerFieldUpdater<Person> ageUpdater = AtomicIntegerFieldUpdater.newUpdater(Person.class, "age"); // this assertion succeeds: ageUpdater.set(person, 25); assertThat(ageUpdater).hasValue(25, person); // this assertion fails: fieldUpdater.set(person, 28); assertThat(fieldUpdater).hasValue(25, person);
- Overrides:
hasValue
in classAbstractAtomicFieldUpdaterAssert<AtomicLongFieldUpdaterAssert<OBJECT>,
Long, AtomicLongFieldUpdater<OBJECT>, OBJECT> - Parameters:
expectedValue
- the expected value inside theOBJECT
.obj
- the object holding the updatable field.- Returns:
- this assertion object.
- Since:
- 2.7.0 / 3.7.0
-
getActualValue
- Specified by:
getActualValue
in classAbstractAtomicFieldUpdaterAssert<AtomicLongFieldUpdaterAssert<OBJECT>,
Long, AtomicLongFieldUpdater<OBJECT>, OBJECT>
-