T
- The promised type.A
- The type of assert that this class is.S
- The type of assert that is returned from the succeeded method.public abstract class AbstractAssertJPromiseAssert<T,A extends AbstractAssertJPromiseAssert<T,A,S>,S extends org.assertj.core.api.AbstractAssert<S,T>> extends org.assertj.core.api.AbstractAssert<A,Promise<T,?>>
Modifier | Constructor and Description |
---|---|
protected |
AbstractAssertJPromiseAssert(Promise<T,?> promise,
Class<A> type)
Constructs a new assertion on promise.
|
Modifier and Type | Method and Description |
---|---|
protected abstract S |
createSucceededAssert(T actual)
Factory method for the succeeded assert class.
|
org.assertj.core.api.AbstractThrowableAssert<?,? extends Throwable> |
failedWithException()
Asserts that the promise failed.
|
S |
succeeded()
Asserts that the promise succeeded.
|
as, as, asList, asString, describedAs, describedAs, descriptionText, doesNotHave, doesNotHaveSameClassAs, equals, failWithMessage, getWritableAssertionInfo, has, hashCode, hasSameClassAs, hasToString, inBinary, inHexadecimal, is, isEqualTo, isExactlyInstanceOf, isIn, isIn, isInstanceOf, isInstanceOfAny, isNot, isNotEqualTo, isNotExactlyInstanceOf, isNotIn, isNotIn, isNotInstanceOf, isNotInstanceOfAny, isNotNull, isNotOfAnyClassIn, isNotSameAs, isNull, isOfAnyClassIn, isSameAs, overridingErrorMessage, usingComparator, usingDefaultComparator, withFailMessage, withThreadDumpOnError
protected abstract S createSucceededAssert(T actual)
actual
- The promised value.AbstractAssert
implementation.public final S succeeded()
AbstractAssert
for making assertions on the promise's completed value.public final org.assertj.core.api.AbstractThrowableAssert<?,? extends Throwable> failedWithException()
ThrowableAssert
for making
assertions on the promise's failure cause.Copyright © 2025 Open Identity Platform Community. All rights reserved.