Skip to content

Commit 3f9402a

Browse files
committed
Update testing documentation to reflect status quo
1 parent c168e1c commit 3f9402a

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

framework-docs/modules/ROOT/pages/testing/testcontext-framework/ctx-management/caching.adoc

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
Once the TestContext framework loads an `ApplicationContext` (or `WebApplicationContext`)
55
for a test, that context is cached and reused for all subsequent tests that declare the
66
same unique context configuration within the same test suite. To understand how caching
7-
works, it is important to understand what is meant by "`unique`" and "`test suite.`"
7+
works, it is important to understand what is meant by "unique" and "test suite."
88

99
An `ApplicationContext` can be uniquely identified by the combination of configuration
1010
parameters that is used to load it. Consequently, the unique combination of configuration
@@ -15,8 +15,8 @@ framework uses the following configuration parameters to build the context cache
1515
* `classes` (from `@ContextConfiguration`)
1616
* `contextInitializerClasses` (from `@ContextConfiguration`)
1717
* `contextCustomizers` (from `ContextCustomizerFactory`) – this includes
18-
`@DynamicPropertySource` methods as well as various features from Spring Boot's
19-
testing support such as `@MockBean` and `@SpyBean`.
18+
`@DynamicPropertySource` methods, bean overrides (such as `@TestBean`, `@MockitoBean`,
19+
`@MockitoSpyBean` etc.), as well as various features from Spring Boot's testing support.
2020
* `contextLoader` (from `@ContextConfiguration`)
2121
* `parent` (from `@ContextHierarchy`)
2222
* `activeProfiles` (from `@ActiveProfiles`)

framework-docs/modules/ROOT/pages/testing/testcontext-framework/parallel-test-execution.adoc

+3-3
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ Do not run tests in parallel if the tests:
1818
* Use Spring Framework's `@DirtiesContext` support.
1919
* Use Spring Framework's `@MockitoBean` or `@MockitoSpyBean` support.
2020
* Use Spring Boot's `@MockBean` or `@SpyBean` support.
21-
* Use JUnit 4's `@FixMethodOrder` support or any testing framework feature
22-
that is designed to ensure that test methods run in a particular order. Note,
23-
however, that this does not apply if entire test classes are run in parallel.
21+
* Use JUnit Jupiter's `@TestMethodOrder` support or any testing framework feature that is
22+
designed to ensure that test methods run in a particular order. Note, however, that
23+
this does not apply if entire test classes are run in parallel.
2424
* Change the state of shared services or systems such as a database, message broker,
2525
filesystem, and others. This applies to both embedded and external systems.
2626

0 commit comments

Comments
 (0)