|
|
|
@ -69,13 +69,13 @@ class UnusedContextsIntegrationTests { |
|
|
|
// No BeforeTestClass, since EventPublishingTestExecutionListener
|
|
|
|
// No BeforeTestClass, since EventPublishingTestExecutionListener
|
|
|
|
// only publishes events for a context that has already been loaded.
|
|
|
|
// only publishes events for a context that has already been loaded.
|
|
|
|
"AfterTestClass:TestCase1", |
|
|
|
"AfterTestClass:TestCase1", |
|
|
|
"ContextStopped:TestCase1", |
|
|
|
"ContextPaused:TestCase1", |
|
|
|
|
|
|
|
|
|
|
|
// --- TestCase2 -----------------------------------------------
|
|
|
|
// --- TestCase2 -----------------------------------------------
|
|
|
|
"ContextRestarted:TestCase1", |
|
|
|
"ContextRestarted:TestCase1", |
|
|
|
"BeforeTestClass:TestCase2", |
|
|
|
"BeforeTestClass:TestCase2", |
|
|
|
"AfterTestClass:TestCase2", |
|
|
|
"AfterTestClass:TestCase2", |
|
|
|
"ContextStopped:TestCase1", |
|
|
|
"ContextPaused:TestCase1", |
|
|
|
|
|
|
|
|
|
|
|
// --- TestCase3 -----------------------------------------------
|
|
|
|
// --- TestCase3 -----------------------------------------------
|
|
|
|
"ContextRestarted:TestCase1", |
|
|
|
"ContextRestarted:TestCase1", |
|
|
|
@ -90,13 +90,13 @@ class UnusedContextsIntegrationTests { |
|
|
|
// No BeforeTestClass, since EventPublishingTestExecutionListener
|
|
|
|
// No BeforeTestClass, since EventPublishingTestExecutionListener
|
|
|
|
// only publishes events for a context that has already been loaded.
|
|
|
|
// only publishes events for a context that has already been loaded.
|
|
|
|
"AfterTestClass:TestCase4", |
|
|
|
"AfterTestClass:TestCase4", |
|
|
|
"ContextStopped:TestCase4", |
|
|
|
"ContextPaused:TestCase4", |
|
|
|
|
|
|
|
|
|
|
|
// --- TestCase5 -----------------------------------------------
|
|
|
|
// --- TestCase5 -----------------------------------------------
|
|
|
|
"ContextRestarted:TestCase4", |
|
|
|
"ContextRestarted:TestCase4", |
|
|
|
"BeforeTestClass:TestCase5", |
|
|
|
"BeforeTestClass:TestCase5", |
|
|
|
"AfterTestClass:TestCase5", |
|
|
|
"AfterTestClass:TestCase5", |
|
|
|
"ContextStopped:TestCase4" |
|
|
|
"ContextPaused:TestCase4" |
|
|
|
); |
|
|
|
); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@ -130,19 +130,19 @@ class UnusedContextsIntegrationTests { |
|
|
|
// using the context
|
|
|
|
// using the context
|
|
|
|
|
|
|
|
|
|
|
|
"AfterTestClass:OverridingNestedTestCase1", |
|
|
|
"AfterTestClass:OverridingNestedTestCase1", |
|
|
|
"ContextStopped:OverridingNestedTestCase1", |
|
|
|
"ContextPaused:OverridingNestedTestCase1", |
|
|
|
|
|
|
|
|
|
|
|
// --- OverridingNestedTestCase2 ---------------------------
|
|
|
|
// --- OverridingNestedTestCase2 ---------------------------
|
|
|
|
"ContextRestarted:OverridingNestedTestCase1", |
|
|
|
"ContextRestarted:OverridingNestedTestCase1", |
|
|
|
"BeforeTestClass:OverridingNestedTestCase2", |
|
|
|
"BeforeTestClass:OverridingNestedTestCase2", |
|
|
|
"AfterTestClass:OverridingNestedTestCase2", |
|
|
|
"AfterTestClass:OverridingNestedTestCase2", |
|
|
|
"ContextStopped:OverridingNestedTestCase1", |
|
|
|
"ContextPaused:OverridingNestedTestCase1", |
|
|
|
|
|
|
|
|
|
|
|
"AfterTestClass:NestedTestCase", |
|
|
|
"AfterTestClass:NestedTestCase", |
|
|
|
// No Stopped event, since EnclosingTestCase is still using the context
|
|
|
|
// No Stopped event, since EnclosingTestCase is still using the context
|
|
|
|
|
|
|
|
|
|
|
|
"AfterTestClass:EnclosingTestCase", |
|
|
|
"AfterTestClass:EnclosingTestCase", |
|
|
|
"ContextStopped:EnclosingTestCase" |
|
|
|
"ContextPaused:EnclosingTestCase" |
|
|
|
); |
|
|
|
); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@ -161,23 +161,23 @@ class UnusedContextsIntegrationTests { |
|
|
|
// --- ContextHierarchyLevel1TestCase ------------------------------
|
|
|
|
// --- ContextHierarchyLevel1TestCase ------------------------------
|
|
|
|
"ContextRefreshed:ContextHierarchyLevel1TestCase", |
|
|
|
"ContextRefreshed:ContextHierarchyLevel1TestCase", |
|
|
|
"AfterTestClass:ContextHierarchyLevel1TestCase", |
|
|
|
"AfterTestClass:ContextHierarchyLevel1TestCase", |
|
|
|
"ContextStopped:ContextHierarchyLevel1TestCase", |
|
|
|
"ContextPaused:ContextHierarchyLevel1TestCase", |
|
|
|
|
|
|
|
|
|
|
|
// --- ContextHierarchyLevel2TestCase ------------------------------
|
|
|
|
// --- ContextHierarchyLevel2TestCase ------------------------------
|
|
|
|
"ContextRestarted:ContextHierarchyLevel1TestCase", |
|
|
|
"ContextRestarted:ContextHierarchyLevel1TestCase", |
|
|
|
"ContextRefreshed:ContextHierarchyLevel2TestCase", |
|
|
|
"ContextRefreshed:ContextHierarchyLevel2TestCase", |
|
|
|
"AfterTestClass:ContextHierarchyLevel2TestCase", |
|
|
|
"AfterTestClass:ContextHierarchyLevel2TestCase", |
|
|
|
"ContextStopped:ContextHierarchyLevel2TestCase", |
|
|
|
"ContextPaused:ContextHierarchyLevel2TestCase", |
|
|
|
"ContextStopped:ContextHierarchyLevel1TestCase", |
|
|
|
"ContextPaused:ContextHierarchyLevel1TestCase", |
|
|
|
|
|
|
|
|
|
|
|
// --- ContextHierarchyLevel3a1TestCase -----------------------------
|
|
|
|
// --- ContextHierarchyLevel3a1TestCase -----------------------------
|
|
|
|
"ContextRestarted:ContextHierarchyLevel1TestCase", |
|
|
|
"ContextRestarted:ContextHierarchyLevel1TestCase", |
|
|
|
"ContextRestarted:ContextHierarchyLevel2TestCase", |
|
|
|
"ContextRestarted:ContextHierarchyLevel2TestCase", |
|
|
|
"ContextRefreshed:ContextHierarchyLevel3a1TestCase", |
|
|
|
"ContextRefreshed:ContextHierarchyLevel3a1TestCase", |
|
|
|
"AfterTestClass:ContextHierarchyLevel3a1TestCase", |
|
|
|
"AfterTestClass:ContextHierarchyLevel3a1TestCase", |
|
|
|
"ContextStopped:ContextHierarchyLevel3a1TestCase", |
|
|
|
"ContextPaused:ContextHierarchyLevel3a1TestCase", |
|
|
|
"ContextStopped:ContextHierarchyLevel2TestCase", |
|
|
|
"ContextPaused:ContextHierarchyLevel2TestCase", |
|
|
|
"ContextStopped:ContextHierarchyLevel1TestCase", |
|
|
|
"ContextPaused:ContextHierarchyLevel1TestCase", |
|
|
|
|
|
|
|
|
|
|
|
// --- ContextHierarchyLevel3a2TestCase -----------------------------
|
|
|
|
// --- ContextHierarchyLevel3a2TestCase -----------------------------
|
|
|
|
"ContextRestarted:ContextHierarchyLevel1TestCase", |
|
|
|
"ContextRestarted:ContextHierarchyLevel1TestCase", |
|
|
|
@ -185,18 +185,18 @@ class UnusedContextsIntegrationTests { |
|
|
|
"ContextRestarted:ContextHierarchyLevel3a1TestCase", |
|
|
|
"ContextRestarted:ContextHierarchyLevel3a1TestCase", |
|
|
|
"BeforeTestClass:ContextHierarchyLevel3a2TestCase", |
|
|
|
"BeforeTestClass:ContextHierarchyLevel3a2TestCase", |
|
|
|
"AfterTestClass:ContextHierarchyLevel3a2TestCase", |
|
|
|
"AfterTestClass:ContextHierarchyLevel3a2TestCase", |
|
|
|
"ContextStopped:ContextHierarchyLevel3a1TestCase", |
|
|
|
"ContextPaused:ContextHierarchyLevel3a1TestCase", |
|
|
|
"ContextStopped:ContextHierarchyLevel2TestCase", |
|
|
|
"ContextPaused:ContextHierarchyLevel2TestCase", |
|
|
|
"ContextStopped:ContextHierarchyLevel1TestCase", |
|
|
|
"ContextPaused:ContextHierarchyLevel1TestCase", |
|
|
|
|
|
|
|
|
|
|
|
// --- ContextHierarchyLevel3bTestCase -----------------------------
|
|
|
|
// --- ContextHierarchyLevel3bTestCase -----------------------------
|
|
|
|
"ContextRestarted:ContextHierarchyLevel1TestCase", |
|
|
|
"ContextRestarted:ContextHierarchyLevel1TestCase", |
|
|
|
"ContextRestarted:ContextHierarchyLevel2TestCase", |
|
|
|
"ContextRestarted:ContextHierarchyLevel2TestCase", |
|
|
|
"ContextRefreshed:ContextHierarchyLevel3bTestCase", |
|
|
|
"ContextRefreshed:ContextHierarchyLevel3bTestCase", |
|
|
|
"AfterTestClass:ContextHierarchyLevel3bTestCase", |
|
|
|
"AfterTestClass:ContextHierarchyLevel3bTestCase", |
|
|
|
"ContextStopped:ContextHierarchyLevel3bTestCase", |
|
|
|
"ContextPaused:ContextHierarchyLevel3bTestCase", |
|
|
|
"ContextStopped:ContextHierarchyLevel2TestCase", |
|
|
|
"ContextPaused:ContextHierarchyLevel2TestCase", |
|
|
|
"ContextStopped:ContextHierarchyLevel1TestCase" |
|
|
|
"ContextPaused:ContextHierarchyLevel1TestCase" |
|
|
|
); |
|
|
|
); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|