Skip to content

Commit

Permalink
Backport NestedTestClassesTests
Browse files Browse the repository at this point in the history
  • Loading branch information
marcphilipp committed Jul 16, 2019
1 parent 7c5659f commit 28cf339
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand All @@ -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");
Expand Down

0 comments on commit 28cf339

Please sign in to comment.