Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Hands-On Reactive Programming with Reactor

You're reading from   Hands-On Reactive Programming with Reactor Build reactive and scalable microservices using the Reactor framework

Arrow left icon
Product type Paperback
Published in Sep 2018
Publisher Packt
ISBN-13 9781789135794
Length 250 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Toc

Table of Contents (13) Chapters Close

Preface 1. Getting Started with Reactive Streams 2. The Publisher and Subscriber APIs in a Reactor FREE CHAPTER 3. Data and Stream Processing 4. Processors 5. SpringWebFlux for Microservices 6. Dynamic Rendering 7. Flow Control and Backpressure 8. Handling Errors 9. Execution Control 10. Testing and Debugging 11. Assessments 12. Other Books You May Enjoy

Chapter 10: Testing and Debugging

  1. 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.

  1. 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.

  1. How should the virtual clock be configured to validate time-bound operations ?

The virtual clock must be injected before performing any time-based operations.

  1. What is the difference between the onOperatorDebug hook and the checkpoint operator?

The onOperatorDebug hook makes a global change...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at ₹800/month. Cancel anytime