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 for
Objects 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
ConstructorsConstructorDescriptionProxyableObjectAssert(ACTUAL actual) ProxyableObjectAssert(AtomicReference<ACTUAL> actual) -
Method Summary
Modifier and TypeMethodDescriptionprotected <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, extracting, extracting, getComparatorsByType, hasAllNullFieldsOrProperties, hasAllNullFieldsOrPropertiesExcept, hasFieldOrProperty, hasFieldOrPropertyWithValue, hasNoNullFieldsOrProperties, hasNoNullFieldsOrPropertiesExcept, hasOnlyFields, isEqualToComparingFieldByField, isEqualToComparingFieldByFieldRecursively, isEqualToComparingOnlyGivenFields, isEqualToIgnoringGivenFields, isEqualToIgnoringNullFields, returns, usingComparatorForFields, usingComparatorForType, usingRecursiveComparison, usingRecursiveComparison, withAssertionState, withComparatorByPropertyOrField, withTypeComparatorMethods 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, overridingErrorMessage, overridingErrorMessage, satisfies, satisfies, satisfiesAnyOf, satisfiesAnyOf, satisfiesAnyOf, setCustomRepresentation, setDescriptionConsumer, setPrintAssertionsDescription, throwAssertionError, usingComparator, usingComparator, usingDefaultComparator, 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
-
Constructor Details
-
ProxyableObjectAssert
-
ProxyableObjectAssert
-
-
Method Details
-
newListAssertInstance
protected <ELEMENT> AbstractListAssert<?,List<? extends ELEMENT>, newListAssertInstanceELEMENT, ObjectAssert<ELEMENT>> (List<? extends ELEMENT> newActual) Description copied from class:AbstractAssertCreate aAbstractListAssert.Implementations need to redefine either to be proxy friendly (i.e. no final assertion methods like
ProxyableListAssert) or generic vararg friendly (to useSafeVarargsannotation which requires final method)likeListAssert.The default implementation will assume that this concrete implementation is NOT a soft assertion.
- Overrides:
newListAssertInstancein classAbstractAssert<ProxyableObjectAssert<ACTUAL>,ACTUAL> - Type Parameters:
ELEMENT- the type of elements.- Parameters:
newActual- new value- Returns:
- a new
AbstractListAssert.
-
newObjectAssert
- Overrides:
newObjectAssertin classAbstractObjectAssert<ProxyableObjectAssert<ACTUAL>,ACTUAL>
-