public interface TestExpectation
Modifier and Type | Method and Description |
---|---|
void |
handleExceptionNotThrown(ConsumerProducerSet consumerProducerSet)
Called when exception is not thrown after calling the call under test.
|
void |
handleThrownException(ConsumerProducerSet consumerProducerSet,
java.lang.Throwable thrownException)
Called when exception is thrown after calling the call under test.
|
void handleExceptionNotThrown(ConsumerProducerSet consumerProducerSet)
AssertionError
exception is expected in the implemented TestExpectation
.consumerProducerSet
- User identifiers used when calling the call under testvoid handleThrownException(ConsumerProducerSet consumerProducerSet, java.lang.Throwable thrownException) throws java.lang.Throwable
AssertionError
exception if the exception is not expected or the exception is
not otherwise expected (e.g. custom assertion fails).consumerProducerSet
- User identifiers used when calling the call under testthrownException
- Thrown exceptionjava.lang.Throwable
- If an exception is thrown