Uses of Class
org.assertj.core.api.WithThrowable
-
Packages that use WithThrowable Package Description org.assertj.core.api -
-
Uses of WithThrowable in org.assertj.core.api
Methods in org.assertj.core.api that return WithThrowable Modifier and Type Method Description WithThrowable
AbstractCompletableFutureAssert. 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
.WithThrowable
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
.WithThrowable
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)
.WithThrowable
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)
-