From fcf535901e95ce529d3781750e1d961cd27c00be Mon Sep 17 00:00:00 2001 From: Stephane Nicoll Date: Mon, 11 Jul 2016 13:31:27 +0200 Subject: [PATCH] Polish doc Closes gh-6008 --- .../src/main/asciidoc/spring-boot-features.adoc | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc b/spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc index 1381d0d622..2d883756b0 100644 --- a/spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc +++ b/spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc @@ -4948,9 +4948,11 @@ will not be scanned when using this annotation. Often `@WebMvcTest` will be limited to a single controller and used in combination with `@MockBean` to provide mock implementations for required collaborators. -`@WebMvcTest` is meta-annotated with `@AutoConfigureMockMvc` which provides -auto-configuration of `MockMvc`. Mock MVC offers a powerful way to quickly test MVC -controllers without needing to start a full HTTP server. +`@WebMvcTest` also auto-configures `MockMvc`. Mock MVC offers a powerful way to quickly +test MVC controllers without needing to start a full HTTP server. + +TIP: You can also auto-configure `MockMvc` in a non-`@WebMvcTest` (e.g. `SpringBootTest`) +by annotating it with `@AutoConfigureMockMvc`. [source,java,indent=0] ----