Skip to content

Glossary: Spring Boot Beyond the Basics

@WebMvcTest

Also written: WebMvcTest, MockMvc, @MockitoBean

A test annotation that starts only the web layer. `MockMvc` fakes requests without a real server, and `@MockitoBean` swaps a service for a fake.

Where the book teaches it

Related terms

Filter