Polish contribution
Closes gh-11143
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user