[SUREFIRE-580] fixed compilation error
Project: http://git-wip-us.apache.org/repos/asf/maven-surefire/repo Commit: http://git-wip-us.apache.org/repos/asf/maven-surefire/commit/86b253ba Tree: http://git-wip-us.apache.org/repos/asf/maven-surefire/tree/86b253ba Diff: http://git-wip-us.apache.org/repos/asf/maven-surefire/diff/86b253ba Branch: refs/heads/master Commit: 86b253ba460ca1b943e54badbec2071385201e93 Parents: 62c7cd0 Author: Tibor17 <tibo...@lycos.com> Authored: Sun Sep 6 22:12:53 2015 +0200 Committer: Tibor17 <tibo...@lycos.com> Committed: Sun Sep 6 22:58:05 2015 +0200 ---------------------------------------------------------------------- .../org/apache/maven/surefire/junitcore/Surefire746Test.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/86b253ba/surefire-providers/surefire-junit47/src/test/java/org/apache/maven/surefire/junitcore/Surefire746Test.java ---------------------------------------------------------------------- diff --git a/surefire-providers/surefire-junit47/src/test/java/org/apache/maven/surefire/junitcore/Surefire746Test.java b/surefire-providers/surefire-junit47/src/test/java/org/apache/maven/surefire/junitcore/Surefire746Test.java index 01aa81f..46213df 100644 --- a/surefire-providers/surefire-junit47/src/test/java/org/apache/maven/surefire/junitcore/Surefire746Test.java +++ b/surefire-providers/surefire-junit47/src/test/java/org/apache/maven/surefire/junitcore/Surefire746Test.java @@ -23,7 +23,9 @@ import java.util.concurrent.ConcurrentHashMap; import org.apache.maven.plugin.surefire.report.DefaultReporterFactory; import org.apache.maven.surefire.booter.BaseProviderFactory; import org.apache.maven.surefire.booter.ProviderParameterNames; +import org.apache.maven.surefire.common.junit4.JUnit4RunListener; import org.apache.maven.surefire.common.junit4.Notifier; +import org.apache.maven.surefire.junit4.MockReporter; import org.apache.maven.surefire.report.ConsoleLogger; import org.apache.maven.surefire.report.DefaultConsoleReporter; import org.apache.maven.surefire.report.ReporterConfiguration; @@ -112,7 +114,8 @@ public class Surefire746Test // JUnitCoreWrapper#execute() is calling JUnit4RunListener#rethrowAnyTestMechanismFailures() // and rethrows a failure which happened in listener exception.expect( TestSetFailedException.class ); - new JUnitCoreWrapper( new Notifier(), jUnitCoreParameters, new Logger(), false ) + JUnit4RunListener dummy = new JUnit4RunListener( new MockReporter() ); + new JUnitCoreWrapper( new Notifier( dummy, 0 ), jUnitCoreParameters, new Logger(), false ) .execute( testsToRun, customRunListeners, null ); } finally