Testing reactive applications
As with non-reactive Spring Boot applications, we want to automate the testing of our reactive applications, and Spring Boot provides excellent support for testing such scenarios.
In this recipe, we’ll learn how to create the tests using the components provided by default by Spring Boot when we add the Spring Reactive Web starter.
Getting ready
In this recipe, we’ll create the tests for the projects used in the Using a reactive API client recipe. If you haven’t completed that recipe yet, you can use the completed version that I prepared as a starting point for this recipe. You can find it in the book’s GitHub repository at https://github.com/PacktPublishing/Spring-Boot-3.0-Cookbook, in the chapter8/recipe8-3/start
folder.
How to do it...
We like robust and reliable applications. We’ll do it with our Reactive applications:
- As the applications from the Using a reactive API client recipe were created...