mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-10-01 19:59:03 +00:00
Introduce ConfigurableApplicationContext.pause() and SmartLifecycle.isPauseable()
Closes gh-35269
This commit is contained in:
spring-test/src/test/java/org/springframework/test/context/cache/UnusedContextsIntegrationTests.java
Vendored
+19
-19
@@ -69,13 +69,13 @@ class UnusedContextsIntegrationTests {
|
||||
// No BeforeTestClass, since EventPublishingTestExecutionListener
|
||||
// only publishes events for a context that has already been loaded.
|
||||
"AfterTestClass:TestCase1",
|
||||
"ContextStopped:TestCase1",
|
||||
"ContextPaused:TestCase1",
|
||||
|
||||
// --- TestCase2 -----------------------------------------------
|
||||
"ContextRestarted:TestCase1",
|
||||
"BeforeTestClass:TestCase2",
|
||||
"AfterTestClass:TestCase2",
|
||||
"ContextStopped:TestCase1",
|
||||
"ContextPaused:TestCase1",
|
||||
|
||||
// --- TestCase3 -----------------------------------------------
|
||||
"ContextRestarted:TestCase1",
|
||||
@@ -90,13 +90,13 @@ class UnusedContextsIntegrationTests {
|
||||
// No BeforeTestClass, since EventPublishingTestExecutionListener
|
||||
// only publishes events for a context that has already been loaded.
|
||||
"AfterTestClass:TestCase4",
|
||||
"ContextStopped:TestCase4",
|
||||
"ContextPaused:TestCase4",
|
||||
|
||||
// --- TestCase5 -----------------------------------------------
|
||||
"ContextRestarted:TestCase4",
|
||||
"BeforeTestClass:TestCase5",
|
||||
"AfterTestClass:TestCase5",
|
||||
"ContextStopped:TestCase4"
|
||||
"ContextPaused:TestCase4"
|
||||
);
|
||||
}
|
||||
|
||||
@@ -130,19 +130,19 @@ class UnusedContextsIntegrationTests {
|
||||
// using the context
|
||||
|
||||
"AfterTestClass:OverridingNestedTestCase1",
|
||||
"ContextStopped:OverridingNestedTestCase1",
|
||||
"ContextPaused:OverridingNestedTestCase1",
|
||||
|
||||
// --- OverridingNestedTestCase2 ---------------------------
|
||||
"ContextRestarted:OverridingNestedTestCase1",
|
||||
"BeforeTestClass:OverridingNestedTestCase2",
|
||||
"AfterTestClass:OverridingNestedTestCase2",
|
||||
"ContextStopped:OverridingNestedTestCase1",
|
||||
"ContextPaused:OverridingNestedTestCase1",
|
||||
|
||||
"AfterTestClass:NestedTestCase",
|
||||
// No Stopped event, since EnclosingTestCase is still using the context
|
||||
|
||||
"AfterTestClass:EnclosingTestCase",
|
||||
"ContextStopped:EnclosingTestCase"
|
||||
"ContextPaused:EnclosingTestCase"
|
||||
);
|
||||
}
|
||||
|
||||
@@ -161,23 +161,23 @@ class UnusedContextsIntegrationTests {
|
||||
// --- ContextHierarchyLevel1TestCase ------------------------------
|
||||
"ContextRefreshed:ContextHierarchyLevel1TestCase",
|
||||
"AfterTestClass:ContextHierarchyLevel1TestCase",
|
||||
"ContextStopped:ContextHierarchyLevel1TestCase",
|
||||
"ContextPaused:ContextHierarchyLevel1TestCase",
|
||||
|
||||
// --- ContextHierarchyLevel2TestCase ------------------------------
|
||||
"ContextRestarted:ContextHierarchyLevel1TestCase",
|
||||
"ContextRefreshed:ContextHierarchyLevel2TestCase",
|
||||
"AfterTestClass:ContextHierarchyLevel2TestCase",
|
||||
"ContextStopped:ContextHierarchyLevel2TestCase",
|
||||
"ContextStopped:ContextHierarchyLevel1TestCase",
|
||||
"ContextPaused:ContextHierarchyLevel2TestCase",
|
||||
"ContextPaused:ContextHierarchyLevel1TestCase",
|
||||
|
||||
// --- ContextHierarchyLevel3a1TestCase -----------------------------
|
||||
"ContextRestarted:ContextHierarchyLevel1TestCase",
|
||||
"ContextRestarted:ContextHierarchyLevel2TestCase",
|
||||
"ContextRefreshed:ContextHierarchyLevel3a1TestCase",
|
||||
"AfterTestClass:ContextHierarchyLevel3a1TestCase",
|
||||
"ContextStopped:ContextHierarchyLevel3a1TestCase",
|
||||
"ContextStopped:ContextHierarchyLevel2TestCase",
|
||||
"ContextStopped:ContextHierarchyLevel1TestCase",
|
||||
"ContextPaused:ContextHierarchyLevel3a1TestCase",
|
||||
"ContextPaused:ContextHierarchyLevel2TestCase",
|
||||
"ContextPaused:ContextHierarchyLevel1TestCase",
|
||||
|
||||
// --- ContextHierarchyLevel3a2TestCase -----------------------------
|
||||
"ContextRestarted:ContextHierarchyLevel1TestCase",
|
||||
@@ -185,18 +185,18 @@ class UnusedContextsIntegrationTests {
|
||||
"ContextRestarted:ContextHierarchyLevel3a1TestCase",
|
||||
"BeforeTestClass:ContextHierarchyLevel3a2TestCase",
|
||||
"AfterTestClass:ContextHierarchyLevel3a2TestCase",
|
||||
"ContextStopped:ContextHierarchyLevel3a1TestCase",
|
||||
"ContextStopped:ContextHierarchyLevel2TestCase",
|
||||
"ContextStopped:ContextHierarchyLevel1TestCase",
|
||||
"ContextPaused:ContextHierarchyLevel3a1TestCase",
|
||||
"ContextPaused:ContextHierarchyLevel2TestCase",
|
||||
"ContextPaused:ContextHierarchyLevel1TestCase",
|
||||
|
||||
// --- ContextHierarchyLevel3bTestCase -----------------------------
|
||||
"ContextRestarted:ContextHierarchyLevel1TestCase",
|
||||
"ContextRestarted:ContextHierarchyLevel2TestCase",
|
||||
"ContextRefreshed:ContextHierarchyLevel3bTestCase",
|
||||
"AfterTestClass:ContextHierarchyLevel3bTestCase",
|
||||
"ContextStopped:ContextHierarchyLevel3bTestCase",
|
||||
"ContextStopped:ContextHierarchyLevel2TestCase",
|
||||
"ContextStopped:ContextHierarchyLevel1TestCase"
|
||||
"ContextPaused:ContextHierarchyLevel3bTestCase",
|
||||
"ContextPaused:ContextHierarchyLevel2TestCase",
|
||||
"ContextPaused:ContextHierarchyLevel1TestCase"
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user