| Package | Description |
|---|---|
| org.assertj.core.api |
| Modifier and Type | Method and Description |
|---|---|
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 of
InterruptedException, ExecutionException,
TimeoutException or CancellationException as per Future.get(long, TimeUnit). |
WithThrowable |
AbstractCompletableFutureAssert.failsWithin(Duration timeout)
Checks that the future does not complete within the given time (by calling
Future.get(long, TimeUnit)) and returns
the exception that caused the failure for further (exception) assertions, the exception can be any of
InterruptedException, ExecutionException, TimeoutException or CancellationException. |
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 of
InterruptedException, ExecutionException,
TimeoutException or CancellationException as per Future.get(long, TimeUnit). |
WithThrowable |
AbstractCompletableFutureAssert.failsWithin(long timeout,
TimeUnit unit)
Checks that the future does not complete within the given time (by calling
Future.get(long, TimeUnit)) and returns
the exception that caused the failure for further (exception) assertions, the exception can be any of
InterruptedException, ExecutionException, TimeoutException or CancellationException. |
Copyright © 2025. All rights reserved.