Skip to content

Commit f4ab574

Browse files
committed
Merge branch '1.4.x' into 1.5.x
2 parents 68c90b2 + 0721608 commit f4ab574

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5287,6 +5287,11 @@ how your tests will run:
52875287
* `NONE` -- Loads an `ApplicationContext` using `SpringApplication` but does not provide
52885288
_any_ servlet environment (mock or otherwise).
52895289

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+
52905295
NOTE: In addition to `@SpringBootTest` a number of other annotations are also
52915296
provided for testing more specific slices of an application. See below for details.
52925297

0 commit comments

Comments
 (0)