Suggest the use of @AutoConfigureMockMvc when using WebEnvironment.MOCK
Closes gh-7112
This commit is contained in:
		
							parent
							
								
									6ac041c43b
								
							
						
					
					
						commit
						639b0f554d
					
				| 
						 | 
					@ -4902,7 +4902,8 @@ how your tests will run:
 | 
				
			||||||
* `MOCK` -- Loads a `WebApplicationContext` and provides a mock servlet environment.
 | 
					* `MOCK` -- Loads a `WebApplicationContext` and provides a mock servlet environment.
 | 
				
			||||||
  Embedded servlet containers are not started when using this annotation. If servlet
 | 
					  Embedded servlet containers are not started when using this annotation. If servlet
 | 
				
			||||||
  APIs are not on your classpath this mode will transparently fallback to creating a
 | 
					  APIs are not on your classpath this mode will transparently fallback to creating a
 | 
				
			||||||
  regular non-web `ApplicationContext`.
 | 
					  regular non-web `ApplicationContext`. Can be used in conjunction with
 | 
				
			||||||
 | 
					  `@AutoConfigureMockMvc` for `MockMvc`-based testing of your application.
 | 
				
			||||||
* `RANDOM_PORT` -- Loads an `EmbeddedWebApplicationContext` and provides a real
 | 
					* `RANDOM_PORT` -- Loads an `EmbeddedWebApplicationContext` and provides a real
 | 
				
			||||||
  servlet environment. Embedded servlet containers are started and listening on a random
 | 
					  servlet environment. Embedded servlet containers are started and listening on a random
 | 
				
			||||||
  port.
 | 
					  port.
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue