Reader small image

You're reading from  Hands-On Reactive Programming in Spring 5

Product typeBook
Published inOct 2018
Reading LevelIntermediate
PublisherPackt
ISBN-139781787284951
Edition1st Edition
Languages
Tools
Right arrow
Authors (2):
Oleh Dokuka
Oleh Dokuka
author image
Oleh Dokuka

Oleh Dokuka is an experienced software engineer, Pivotal Champion, and one of the top contributors to Project Reactor and Spring Framework. He knows the internals of both frameworks very well and advocates reactive programming with Project Reactor on a daily basis. Along with that, the author applies Spring Framework and Project Reactor in software development, so he knows how to build reactive systems using these technologies.
Read more about Oleh Dokuka

Igor Lozynskyi
Igor Lozynskyi
author image
Igor Lozynskyi

Igor Lozynskyi is a senior Java developer who primarily focuses on developing reliable, scalable, and blazingly fast systems. He has over seven years of experience with the Java platform. He is passionate about interesting and dynamic projects both in life and in software development.
Read more about Igor Lozynskyi

View More author details
Right arrow

Testing reactive streams with StepVerifier

For testing purposes, Reactor offers an additional reactor-test module that provides StepVerifier. StepVerifier provides a fluent API for building a verification flow for any Publisher. In the following subsections, we will cover everything about the Reactor Test module, starting with the essentials and finishing with advanced testing cases.

Essentials of StepVerifier

There are two main methods for verifying a Publisher. The first one is StepVerifier.<T>create(Publisher<T> source). The test that can be built with this technique looks like the following:

StepVerifier
.create(Flux.just("foo", "bar")) ...
lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Hands-On Reactive Programming in Spring 5
Published in: Oct 2018Publisher: PacktISBN-13: 9781787284951

Authors (2)

author image
Oleh Dokuka

Oleh Dokuka is an experienced software engineer, Pivotal Champion, and one of the top contributors to Project Reactor and Spring Framework. He knows the internals of both frameworks very well and advocates reactive programming with Project Reactor on a daily basis. Along with that, the author applies Spring Framework and Project Reactor in software development, so he knows how to build reactive systems using these technologies.
Read more about Oleh Dokuka

author image
Igor Lozynskyi

Igor Lozynskyi is a senior Java developer who primarily focuses on developing reliable, scalable, and blazingly fast systems. He has over seven years of experience with the Java platform. He is passionate about interesting and dynamic projects both in life and in software development.
Read more about Igor Lozynskyi