You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* `DependencyInjectionTestExecutionListener`: Provides dependency injection for the test
15
16
instance.
16
17
* `MicrometerObservationRegistryTestExecutionListener`: Provides support for
17
18
Micrometer's `ObservationRegistry`.
18
19
* `DirtiesContextTestExecutionListener`: Handles the `@DirtiesContext` annotation for
19
-
"`after`" modes.
20
+
"after" modes.
20
21
* `CommonCachesTestExecutionListener`: Clears resource caches in the test's
21
22
`ApplicationContext` if necessary.
22
23
* `TransactionalTestExecutionListener`: Provides transactional test execution with
@@ -161,15 +162,16 @@ change from release to release -- for example, `SqlScriptsTestExecutionListener`
161
162
introduced in Spring Framework 4.1, and `DirtiesContextBeforeModesTestExecutionListener`
162
163
was introduced in Spring Framework 4.2. Furthermore, third-party frameworks like Spring
163
164
Boot and Spring Security register their own default `TestExecutionListener`
164
-
implementations by using the aforementioned xref:testing/testcontext-framework/tel-config.adoc#testcontext-tel-config-automatic-discovery[automatic discovery mechanism]
To avoid having to be aware of and re-declare all default listeners, you can set the
168
169
`mergeMode` attribute of `@TestExecutionListeners` to `MergeMode.MERGE_WITH_DEFAULTS`.
169
170
`MERGE_WITH_DEFAULTS` indicates that locally declared listeners should be merged with the
170
171
default listeners. The merging algorithm ensures that duplicates are removed from the
171
172
list and that the resulting set of merged listeners is sorted according to the semantics
172
-
of `AnnotationAwareOrderComparator`, as described in xref:testing/testcontext-framework/tel-config.adoc#testcontext-tel-config-ordering[Ordering `TestExecutionListener` Implementations].
173
+
of `AnnotationAwareOrderComparator`, as described in
0 commit comments