Skip to content

Commit

Permalink
Rename SummaryCreatingTestListener to SummaryGeneratingListener
Browse files Browse the repository at this point in the history
------------------------------------------------------------------------
On behalf of the community, the JUnit Lambda Team thanks Gradle Inc.
(https://gradle.org) for supporting the JUnit crowdfunding campaign!
------------------------------------------------------------------------
  • Loading branch information
sbrannen committed Dec 20, 2015
1 parent a8e1f3a commit 625d716
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Expand Up @@ -21,7 +21,7 @@
import org.junit.gen5.console.options.CommandLineOptions;
import org.junit.gen5.engine.TestPlanSpecification;
import org.junit.gen5.launcher.Launcher;
import org.junit.gen5.launcher.listeners.SummaryCreatingTestListener;
import org.junit.gen5.launcher.listeners.SummaryGeneratingListener;
import org.junit.gen5.launcher.listeners.TestExecutionSummary;

/**
Expand Down Expand Up @@ -51,7 +51,7 @@ private int executeTests(PrintWriter out) {
Launcher launcher = launcherSupplier.get();
// TODO Configure launcher?

SummaryCreatingTestListener summaryListener = registerListeners(out, launcher);
SummaryGeneratingListener summaryListener = registerListeners(out, launcher);

TestPlanSpecification specification = new TestPlanSpecificationCreator().toTestPlanSpecification(options);
launcher.execute(specification);
Expand All @@ -73,8 +73,8 @@ private Optional<ClassLoader> createCustomClassLoader() {
return Optional.empty();
}

private SummaryCreatingTestListener registerListeners(PrintWriter out, Launcher launcher) {
SummaryCreatingTestListener summaryListener = new SummaryCreatingTestListener();
private SummaryGeneratingListener registerListeners(PrintWriter out, Launcher launcher) {
SummaryGeneratingListener summaryListener = new SummaryGeneratingListener();
launcher.registerTestExecutionListeners(summaryListener);
if (!options.isHideDetails()) {
launcher.registerTestExecutionListeners(
Expand Down
Expand Up @@ -22,7 +22,7 @@
* <p>JUnit provides two example implementations:
* <ul>
* <li>{@link org.junit.gen5.launcher.listeners.LoggingListener}</li>
* <li>{@link org.junit.gen5.launcher.listeners.SummaryCreatingTestListener}</li>
* <li>{@link org.junit.gen5.launcher.listeners.SummaryGeneratingListener}</li>
* </ul>
*
* <p>Contrary to JUnit 4, {@linkplain org.junit.gen5.engine.TestEngine test engines}
Expand Down
Expand Up @@ -23,7 +23,7 @@
/**
* @since 5.0
*/
public class SummaryCreatingTestListener implements TestExecutionListener {
public class SummaryGeneratingListener implements TestExecutionListener {

private TestPlan testPlan;

Expand Down

0 comments on commit 625d716

Please sign in to comment.