Package org.apache.flink.core.testutils
Class FlinkCompletableFutureAssert.WithThrowable
java.lang.Object
org.apache.flink.core.testutils.FlinkCompletableFutureAssert.WithThrowable
- Enclosing class:
- FlinkCompletableFutureAssert<T>
A strongly typed alternative to
WithThrowable.-
Method Summary
Modifier and TypeMethodDescription<T extends Throwable>
org.assertj.core.api.ThrowableAssertAlternative<T>withCauseOfType(Class<T> cause) Checks that the underlying throwable has cause of the given type and returns aThrowableAssertAlternativeto chain further assertions on the underlying throwable.<T extends Throwable>
org.assertj.core.api.ThrowableAssertAlternative<T>withThrowableOfType(Class<T> type) Checks that the underlying throwable is of the given type and returns aThrowableAssertAlternativeto chain further assertions on the underlying throwable.
-
Method Details
-
withThrowableOfType
public <T extends Throwable> org.assertj.core.api.ThrowableAssertAlternative<T> withThrowableOfType(Class<T> type) Checks that the underlying throwable is of the given type and returns aThrowableAssertAlternativeto chain further assertions on the underlying throwable. -
withCauseOfType
public <T extends Throwable> org.assertj.core.api.ThrowableAssertAlternative<T> withCauseOfType(Class<T> cause) Checks that the underlying throwable has cause of the given type and returns aThrowableAssertAlternativeto chain further assertions on the underlying throwable.
-