how to assert on exception thrown from `Completabl...
# kotest
s
how to assert on exception thrown from
CompletableFuture<T>
?
following will work:
Copy code
val dbException = shouldThrow<DynamoDbException> {
        dataRepository.getEventsForBucketId(getEventIdsForBucketIdRequest).await()
      }
s
There's also,
future.shouldBeCompletedExceptionally()
s
but that doesnt return the exception as far as I know.