In this chapter, we learned how to test asynchronous code written using Reactor 3 or any Reactive Streams-based libraries. In turn, we covered the essential points of testing reactive Spring applications, based on the WebFlux module and the Spring Test module. Then, using WebTestClient, we learned a way to verify a single controller in isolation, or the whole application with mocked external interaction. Furthermore, we learned knowing how to test Reactor 3 helps us in testing the whole system in integration. Along with everyday business logic checking, we learned a few tips for working with mocked security, which is also a crucial part of modern web applications. Finally, this chapter ended with some tips and tricks for WebSocket testing. Here, we saw some of the limitations of the 5.0.x Spring Test module. Nevertheless, by adopting WebSocketClient...
United States
United Kingdom
India
Germany
France
Canada
Russia
Spain
Brazil
Australia
Argentina
Austria
Belgium
Bulgaria
Chile
Colombia
Cyprus
Czechia
Denmark
Ecuador
Egypt
Estonia
Finland
Greece
Hungary
Indonesia
Ireland
Italy
Japan
Latvia
Lithuania
Luxembourg
Malaysia
Malta
Mexico
Netherlands
New Zealand
Norway
Philippines
Poland
Portugal
Romania
Singapore
Slovakia
Slovenia
South Africa
South Korea
Sweden
Switzerland
Taiwan
Thailand
Turkey
Ukraine