Package | Description |
---|---|
reactor.test |
Main test components supporting the testing and assertion of publishers.
|
Modifier and Type | Method and Description |
---|---|
StepVerifier |
StepVerifier.LastStep.consumeErrorWith(Consumer<Throwable> consumer)
Expect an error and consume with the given consumer.
|
StepVerifier |
StepVerifier.LastStep.expectComplete()
Expect the completion signal.
|
StepVerifier |
StepVerifier.LastStep.expectError()
Expect an unspecified error.
|
StepVerifier |
StepVerifier.LastStep.expectError(Class<? extends Throwable> clazz)
Expect an error of the specified type.
|
StepVerifier |
StepVerifier.LastStep.expectErrorMatches(Predicate<Throwable> predicate)
Expect an error and evaluate with the given predicate.
|
StepVerifier |
StepVerifier.LastStep.expectErrorMessage(String errorMessage)
Expect an error with the specified message.
|
StepVerifier |
StepVerifier.LastStep.expectErrorSatisfies(Consumer<Throwable> assertionConsumer)
Expect an error and assert it via assertion(s) provided as a
Consumer . |
StepVerifier |
StepVerifier.LastStep.expectTimeout(Duration duration)
|
StepVerifier |
StepVerifier.log()
Activate debug logging of a description of the test scenario, as well as
some details about certain verification steps.
|
StepVerifier |
StepVerifier.LastStep.thenCancel()
Cancel the underlying subscription.
|
StepVerifier |
StepVerifier.verifyLater()
Trigger the subscription and prepare for verifications but doesn't block.
|