Polish contribution

Closes gh-11143
This commit is contained in:
Stephane Nicoll
2017-11-27 10:14:34 +01:00
parent d9828a0aaa
commit 1620ac42b3
3 changed files with 12 additions and 11 deletions

View File

@@ -6017,9 +6017,9 @@ A list of the auto-configuration that is enabled by `@JsonTest` can be
==== Auto-configured Spring MVC Tests
To test Spring MVC controllers are working as expected, you can use the `@WebMvcTest`
annotation. `@WebMvcTest` auto-configures the Spring MVC infrastructure and limits
scanned beans to `@Controller`, `@ControllerAdvice`, `@JsonComponent`, `Converter`, `GenericConverter`,
`Filter`, `WebMvcConfigurer`, and `HandlerMethodArgumentResolver`. Regular `@Component`
beans are not scanned when using this annotation.
scanned beans to `@Controller`, `@ControllerAdvice`, `@JsonComponent`, `Converter`,
`GenericConverter`, `Filter`, `WebMvcConfigurer`, and `HandlerMethodArgumentResolver`.
Regular `@Component` beans are not scanned when using this annotation.
TIP: If you need to register extra components such as Jackson `Module`, you can import
additional configuration classes using `@Import` on your test.
@@ -6124,8 +6124,8 @@ A list of the auto-configuration settings that are enabled by `@WebMvcTest` can
To test that Spring WebFlux controllers are working as expected, you can use the
`@WebFluxTest` annotation. `@WebFluxTest` auto-configures the Spring WebFlux
infrastructure and limits scanned beans to `@Controller`, `@ControllerAdvice`,
`@JsonComponent`, `Converter`, `GenericConverter`, and `WebFluxConfigurer`. Regular `@Component` beans are
not scanned when the `@WebFluxTest` annotation is used.
`@JsonComponent`, `Converter`, `GenericConverter`, and `WebFluxConfigurer`. Regular
`@Component` beans are not scanned when the `@WebFluxTest` annotation is used.
TIP: If you need to register extra components such as Jackson `Module`, you can import
additional configuration classes using `@Import` on your test.