Uses of Class
org.assertj.core.api.WithThrowable
-
Uses of WithThrowable in org.assertj.core.api
Modifier and TypeMethodDescriptionAbstractCompletableFutureAssert.failsWithin
(long timeout, TimeUnit unit) Checks that the future does not complete within the given time (by callingFuture.get(long, TimeUnit)
) and returns the exception that caused the failure for further (exception) assertions, the exception can be any ofInterruptedException
,ExecutionException
,TimeoutException
orCancellationException
.AbstractCompletableFutureAssert.failsWithin
(Duration timeout) Checks that the future does not complete within the given time (by callingFuture.get(long, TimeUnit)
) and returns the exception that caused the failure for further (exception) assertions, the exception can be any ofInterruptedException
,ExecutionException
,TimeoutException
orCancellationException
.AbstractFutureAssert.failsWithin
(long timeout, TimeUnit unit) Checks that the future does not complete within the given time and returns the exception that caused the failure for further (exception) assertions, the exception can be any ofInterruptedException
,ExecutionException
,TimeoutException
orCancellationException
as perFuture.get(long, TimeUnit)
.AbstractFutureAssert.failsWithin
(Duration timeout) Checks that the future does not complete within the given time and returns the exception that caused the failure for further (exception) assertions, the exception can be any ofInterruptedException
,ExecutionException
,TimeoutException
orCancellationException
as perFuture.get(long, TimeUnit)
.