- Which test utility class is available in Reactor to validate the invoked operations on a stream?
Reactor provides the StepVerifier component to validate the required operations in isolation.
- What is the difference between PublisherProbe and TestPublisher?
The PublisherProbe utility can instrument an existing publisher. The probe keeps track of signals published by the publisher, which can be validated at the end of the test. On the other hand, TestPublisher is capable of generating the Publisher stub, which can be used to unit test Reactor operators.
- How should the virtual clock be configured to validate time-bound operations ?
The virtual clock must be injected before performing any time-based operations.
- What is the difference between the onOperatorDebug hook and the checkpoint operator?
The onOperatorDebug hook makes a global change...