File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
spring-boot-docs/src/main/asciidoc Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -5062,6 +5062,11 @@ how your tests will run:
5062
5062
* `NONE` -- Loads an `ApplicationContext` using `SpringApplication` but does not provide
5063
5063
_any_ servlet environment (mock or otherwise).
5064
5064
5065
+ NOTE: If your test is `@Transactional`, it will rollback the transaction at the end of
5066
+ each test method by default. If you're using this arrangement in combination with either
5067
+ `RANDOM_PORT` or `DEFINED_PORT`, any transaction initiated on the server won't rollback as
5068
+ the test is running in a different thread than the server processing.
5069
+
5065
5070
NOTE: In addition to `@SpringBootTest` a number of other annotations are also
5066
5071
provided for testing more specific slices of an application. See below for details.
5067
5072
You can’t perform that action at this time.
0 commit comments