In this section, we are going to cover additions that were introduced for the verification of WebFlux-based applications. Here, we will focus on checking the modules' compatibility, application integrity, exposed communication protocols, external APIs, and client libraries. So it is not about simple unit tests anymore, but more about the component and integration testing.
Testing WebFlux
Testing Controllers with WebTestClient
Imagine that we test a Payment service. In this scenario, suppose that the Payment service supports the GET and POST methods for the /payments endpoint. The first HTTP call is responsible for retrieving the list of executed payments for the current user...