File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
spring-boot-project/spring-boot-docs/src/main/asciidoc Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -6837,6 +6837,10 @@ restricted set of auto-configuration classes. If you need to exclude one of them
6837
6837
most `@...Test` annotations provide an `excludeAutoConfiguration` attribute.
6838
6838
Alternatively, you can use `@ImportAutoConfiguration#exclude`.
6839
6839
6840
+ NOTE: Including multiple "`slices`" by using several `@...Test` annotations in one test is
6841
+ not supported. If you need multiple "`slices`", pick one of the `@...Test` annotations
6842
+ and include the `@AutoConfigure...` annotations of the other "`slices`" by hand.
6843
+
6840
6844
TIP: It is also possible to use the `@AutoConfigure...` annotations with the standard
6841
6845
`@SpringBootTest` annotation. You can use this combination if you are not interested in
6842
6846
"`slicing`" your application but you want some of the auto-configured test beans.
You can’t perform that action at this time.
0 commit comments