Skip to content

Commit 639b0f5

Browse files
committed
Suggest the use of @AutoConfigureMockMvc when using WebEnvironment.MOCK
Closes gh-7112
1 parent 6ac041c commit 639b0f5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4902,7 +4902,8 @@ how your tests will run:
49024902
* `MOCK` -- Loads a `WebApplicationContext` and provides a mock servlet environment.
49034903
Embedded servlet containers are not started when using this annotation. If servlet
49044904
APIs are not on your classpath this mode will transparently fallback to creating a
4905-
regular non-web `ApplicationContext`.
4905+
regular non-web `ApplicationContext`. Can be used in conjunction with
4906+
`@AutoConfigureMockMvc` for `MockMvc`-based testing of your application.
49064907
* `RANDOM_PORT` -- Loads an `EmbeddedWebApplicationContext` and provides a real
49074908
servlet environment. Embedded servlet containers are started and listening on a random
49084909
port.

0 commit comments

Comments
 (0)