Summary

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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.