How to test the Web Services of your Spring Boot Application with @WebServiceServerTest

The idea of applications that provide their services over the web is anything but new. Chances are quite high that you already implemented such a service through a REST API. But before REST, there was a different approach to providing such services - SOAP. The release of Spring Boot 2.6.0 introduced a new test slice to test the components involved in providing these services. Let’s have a look at it!

[Read More]

How to test the Web Layer of your Spring Boot Application with @WebMvcTest

The Web Layer is an interface that enables systems to access the business logic of your application. It is responsible to translate the web-based requests into a format that is used in the core of your system. Also, it transforms the internally used formats into a response that can be sent over the web.
To lower the risk of changing the behavior of your Web Layer by accident, you can use @WebMvcTests.

[Read More]