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 @@ -5287,6 +5287,11 @@ how your tests will run:
5287
5287
* `NONE` -- Loads an `ApplicationContext` using `SpringApplication` but does not provide
5288
5288
_any_ servlet environment (mock or otherwise).
5289
5289
5290
+ NOTE: If your test is `@Transactional`, it will rollback the transaction at the end of
5291
+ each test method by default. If you're using this arrangement in combination with either
5292
+ `RANDOM_PORT` or `DEFINED_PORT`, any transaction initiated on the server won't rollback as
5293
+ the test is running in a different thread than the server processing.
5294
+
5290
5295
NOTE: In addition to `@SpringBootTest` a number of other annotations are also
5291
5296
provided for testing more specific slices of an application. See below for details.
5292
5297
You can’t perform that action at this time.
0 commit comments