This chapter focused on testing and debugging Reactor Streams. Testing Reactor Flux/Mono streams is complex, as each stream is evaluated lazily in an async manner. We also looked at StepVerifier, which can validate individual steps in isolation. Next, we looked at a virtual clock to validate time-sensitive operations, such as delays. We also looked at the PublisherProbe utility used to validate a Publisher's end state. Then, in order to unit test Reactive operators and stream business logic, we performed stubbing using TestPublisher. The next section was about debugging Reactor Streams to gain further knowledge about under-the-covers processing. Debugging Reactor streams is complex, since the operators are evaluated in an asynchronous ...

Get Hands-On Reactive Programming with Reactor now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.