Class AssertionBuilder
java.lang.Object
nl.pim16aap2.testing.assertions.AssertionBuilder
A utility class for building assertions.
Some assertions can be built in other ways than this class, but this class provides a single point of entry for all assertion builders.
-
Method Summary
Modifier and TypeMethodDescriptionassertHasExceptionContext(CompletableFuture<?> future) Asserts that the givenCompletableFuturehas an exception context set.
-
Method Details
-
assertHasExceptionContext
@CheckReturnValue public static CompletableFutureAssertionsUtil.ExceptionContextAssertionBuilder assertHasExceptionContext(CompletableFuture<?> future) Asserts that the givenCompletableFuturehas an exception context set.- Parameters:
future- TheCompletableFutureto assert on.- Returns:
- The assertion builder with the given
CompletableFutureset.
-