Uses of Class
org.assertj.core.api.WithThrowable
Packages that use WithThrowable
-
Uses of WithThrowable in org.assertj.core.api
Methods in org.assertj.core.api that return WithThrowableModifier 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)
.private WithThrowable
AbstractCompletableFutureAssert.internalFailsWithin
(long timeout, TimeUnit unit) private WithThrowable
AbstractCompletableFutureAssert.internalFailsWithin
(Duration timeout) private WithThrowable
AbstractFutureAssert.internalFailsWithin
(long timeout, TimeUnit unit) private WithThrowable
AbstractFutureAssert.internalFailsWithin
(Duration timeout)