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.completesExceptionallyWithin(long timeout, TimeUnit unit) Checks that the future completes exceptionally within the given time (by callingFuture.get(long, TimeUnit)) and returns the exception that caused the failure for further (exception) assertions.AbstractCompletableFutureAssert.completesExceptionallyWithin(Duration timeout) Checks that the future completes exceptionally within the given time (by callingFuture.get(long, TimeUnit)) and returns the exception that caused the failure for further (exception) assertions.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,TimeoutExceptionorCancellationException.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,TimeoutExceptionorCancellationException.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,TimeoutExceptionorCancellationExceptionas 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,TimeoutExceptionorCancellationExceptionas perFuture.get(long, TimeUnit).