From 28cf33919034858cb1ad5273b08994050b2f8db7 Mon Sep 17 00:00:00 2001 From: Marc Philipp Date: Tue, 16 Jul 2019 09:13:23 +0200 Subject: [PATCH] Backport NestedTestClassesTests --- .../junit/jupiter/engine/NestedTestClassesTests.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/junit-jupiter-engine/src/test/java/org/junit/jupiter/engine/NestedTestClassesTests.java b/junit-jupiter-engine/src/test/java/org/junit/jupiter/engine/NestedTestClassesTests.java index 066a15dc0189..4c3dce0085cd 100644 --- a/junit-jupiter-engine/src/test/java/org/junit/jupiter/engine/NestedTestClassesTests.java +++ b/junit-jupiter-engine/src/test/java/org/junit/jupiter/engine/NestedTestClassesTests.java @@ -104,9 +104,9 @@ void inheritedNestedTestsAreExecuted() { @Test void extendedNestedTestsAreExecuted() { EngineExecutionResults executionResults = executeTestsForClass(TestCaseWithExtendedNested.class); - executionResults.allEvents().debug(); - Events containers = executionResults.containerEvents(); - Events tests = executionResults.testEvents(); + executionResults.all().debug(); + Events containers = executionResults.containers(); + Events tests = executionResults.tests(); assertEquals(6, tests.started().count(), "# tests started"); assertEquals(4, tests.succeeded().count(), "# tests succeeded"); @@ -122,9 +122,9 @@ void deeplyNestedInheritedMethodsAreExecutedWhenSelectedViaUniqueId() { "[engine:junit-jupiter]/[class:org.junit.jupiter.engine.NestedTestClassesTests$TestCaseWithExtendedNested]/[nested-class:ConcreteInner1]/[nested-class:NestedInAbstractClass]/[nested-class:SecondLevelInherited]/[method:test()]"), selectUniqueId( "[engine:junit-jupiter]/[class:org.junit.jupiter.engine.NestedTestClassesTests$TestCaseWithExtendedNested]/[nested-class:ConcreteInner2]/[nested-class:NestedInAbstractClass]/[nested-class:SecondLevelInherited]/[method:test()]")); - executionResults.allEvents().debug(); - Events containers = executionResults.containerEvents(); - Events tests = executionResults.testEvents(); + executionResults.all().debug(); + Events containers = executionResults.containers(); + Events tests = executionResults.tests(); assertEquals(2, tests.started().count(), "# tests started"); assertEquals(2, tests.succeeded().count(), "# tests succeeded");