Practice Test Geeks home

Spring Boot Testing Spring Applications Questions and Answers

A developer needs to write a test for a Spring MVC `@RestController` that focuses exclusively on the web layer.
The test should verify request mappings, JSON serialization/deserialization, and exception handling without loading the service or repository layers.

Which annotation is most suitable for this purpose?

Select your answer