Skip to content

Commit

Permalink
Polish JUnitPlatformTestTree
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrannen committed Jun 29, 2016
1 parent 5fa6321 commit bf15d61
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -36,7 +36,7 @@ class JUnitPlatformTestTree {


JUnitPlatformTestTree(TestPlan plan, Class<?> testClass) { JUnitPlatformTestTree(TestPlan plan, Class<?> testClass) {
this.plan = plan; this.plan = plan;
this.suiteDescription = generateDescription(plan, testClass); this.suiteDescription = generateSuiteDescription(plan, testClass);
} }


Description getSuiteDescription() { Description getSuiteDescription() {
Expand All @@ -47,7 +47,7 @@ Description getDescription(TestIdentifier identifier) {
return this.descriptions.get(identifier); return this.descriptions.get(identifier);
} }


private Description generateDescription(TestPlan testPlan, Class<?> testClass) { private Description generateSuiteDescription(TestPlan testPlan, Class<?> testClass) {
Description suiteDescription = Description.createSuiteDescription(testClass.getName()); Description suiteDescription = Description.createSuiteDescription(testClass.getName());
buildDescriptionTree(suiteDescription, testPlan); buildDescriptionTree(suiteDescription, testPlan);
return suiteDescription; return suiteDescription;
Expand All @@ -58,7 +58,7 @@ private void buildDescriptionTree(Description suiteDescription, TestPlan testPla
} }


void addDynamicDescription(TestIdentifier newIdentifier, String parentId) { void addDynamicDescription(TestIdentifier newIdentifier, String parentId) {
Description parent = getDescription(plan.getTestIdentifier(parentId)); Description parent = getDescription(this.plan.getTestIdentifier(parentId));
buildDescription(newIdentifier, parent, this.plan); buildDescription(newIdentifier, parent, this.plan);
} }


Expand Down

0 comments on commit bf15d61

Please sign in to comment.