Package org.assertj.core.api
Class ProxyableObjectAssert<ACTUAL>
- java.lang.Object
-
- org.assertj.core.api.AbstractAssert<SELF,ACTUAL>
-
- org.assertj.core.api.AbstractObjectAssert<ProxyableObjectAssert<ACTUAL>,ACTUAL>
-
- org.assertj.core.api.ProxyableObjectAssert<ACTUAL>
-
- All Implemented Interfaces:
Assert<ProxyableObjectAssert<ACTUAL>,ACTUAL>
,Descriptable<ProxyableObjectAssert<ACTUAL>>
,ExtensionPoints<ProxyableObjectAssert<ACTUAL>,ACTUAL>
public class ProxyableObjectAssert<ACTUAL> extends AbstractObjectAssert<ProxyableObjectAssert<ACTUAL>,ACTUAL>
Concrete assertions forObject
s without any final methods to allow proxying.
-
-
Field Summary
-
Fields inherited from class org.assertj.core.api.AbstractAssert
actual, assertionErrorCreator, conditions, info, myself, objects, throwUnsupportedExceptionOnEquals
-
-
Constructor Summary
Constructors Constructor Description ProxyableObjectAssert(ACTUAL actual)
ProxyableObjectAssert(AtomicReference<ACTUAL> actual)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected <ELEMENT> AbstractListAssert<?,List<? extends ELEMENT>,ELEMENT,ObjectAssert<ELEMENT>>
newListAssertInstance(List<? extends ELEMENT> newActual)
Create aAbstractListAssert
.protected <T> AbstractObjectAssert<?,T>
newObjectAssert(T objectUnderTest)
-
Methods inherited from class org.assertj.core.api.AbstractObjectAssert
as, as, extracting, extracting, extracting, extracting, getComparatorsByType, hasAllNullFieldsOrProperties, hasAllNullFieldsOrPropertiesExcept, hasFieldOrProperty, hasFieldOrPropertyWithValue, hasNoNullFieldsOrProperties, hasNoNullFieldsOrPropertiesExcept, isEqualToComparingFieldByField, isEqualToComparingFieldByFieldRecursively, isEqualToComparingOnlyGivenFields, isEqualToIgnoringGivenFields, isEqualToIgnoringNullFields, returns, usingComparatorForFields, usingComparatorForType, usingRecursiveComparison, usingRecursiveComparison, withAssertionState, withComparatorByPropertyOrField, withTypeComparator
-
Methods inherited from class org.assertj.core.api.AbstractAssert
asInstanceOf, 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, overridingErrorMessage, satisfies, satisfies, satisfiesAnyOf, satisfiesAnyOf, setCustomRepresentation, throwAssertionError, usingComparator, usingComparator, usingDefaultComparator, withFailMessage, withRepresentation, withThreadDumpOnError
-
-
-
-
Constructor Detail
-
ProxyableObjectAssert
public ProxyableObjectAssert(ACTUAL actual)
-
ProxyableObjectAssert
public ProxyableObjectAssert(AtomicReference<ACTUAL> actual)
-
-
Method Detail
-
newListAssertInstance
protected <ELEMENT> AbstractListAssert<?,List<? extends ELEMENT>,ELEMENT,ObjectAssert<ELEMENT>> newListAssertInstance(List<? extends ELEMENT> newActual)
Description copied from class:AbstractAssert
Create aAbstractListAssert
.Implementations need to redefine either to be proxy friendly (i.e. no final assertion methods like
ProxyableListAssert
) or generic vararg friendly (to useSafeVarargs
annotation which requires final method)likeListAssert
.The default implementation will assume that this concrete implementation is NOT a soft assertion.
- Overrides:
newListAssertInstance
in classAbstractAssert<ProxyableObjectAssert<ACTUAL>,ACTUAL>
- Type Parameters:
ELEMENT
- the type of elements.- Parameters:
newActual
- new value- Returns:
- a new
AbstractListAssert
.
-
newObjectAssert
protected <T> AbstractObjectAssert<?,T> newObjectAssert(T objectUnderTest)
- Overrides:
newObjectAssert
in classAbstractObjectAssert<ProxyableObjectAssert<ACTUAL>,ACTUAL>
-
-