diff options
Diffstat (limited to 'src/java_tools/junitrunner/java/com/google/testing/junit/runner/junit4/JUnit4RunnerModule.java')
-rw-r--r-- | src/java_tools/junitrunner/java/com/google/testing/junit/runner/junit4/JUnit4RunnerModule.java | 21 |
1 files changed, 2 insertions, 19 deletions
diff --git a/src/java_tools/junitrunner/java/com/google/testing/junit/runner/junit4/JUnit4RunnerModule.java b/src/java_tools/junitrunner/java/com/google/testing/junit/runner/junit4/JUnit4RunnerModule.java index af6bcdc562..1e2972bfa3 100644 --- a/src/java_tools/junitrunner/java/com/google/testing/junit/runner/junit4/JUnit4RunnerModule.java +++ b/src/java_tools/junitrunner/java/com/google/testing/junit/runner/junit4/JUnit4RunnerModule.java @@ -17,55 +17,38 @@ package com.google.testing.junit.runner.junit4; import com.google.testing.junit.runner.internal.SignalHandlers; import com.google.testing.junit.runner.util.TestNameProvider; import com.google.testing.junit.runner.util.Ticker; - -import dagger.Module; -import dagger.Provides; -import dagger.multibindings.IntoSet; - -import org.junit.runner.notification.RunListener; - import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.OutputStream; import java.nio.file.Path; import javax.annotation.Nullable; import javax.inject.Singleton; +import org.junit.runner.notification.RunListener; /** * Dagger module for real test runs. */ -@Module(includes = {JUnit4RunnerBaseModule.class, JUnit4InstanceModules.Config.class}) public final class JUnit4RunnerModule { - @Provides static Ticker ticker() { return Ticker.systemTicker(); } - @Provides static SignalHandlers.HandlerInstaller signalHandlerInstaller() { return SignalHandlers.createRealHandlerInstaller(); } - @Provides - @IntoSet static RunListener nameListener(JUnit4TestNameListener impl) { return impl; } - @Provides - @IntoSet static RunListener xmlListener(JUnit4TestXmlListener impl) { return impl; } - @Provides - @IntoSet static RunListener stackTraceListener(JUnit4TestStackTraceListener impl) { return impl; } - - @Provides @Singleton @Xml static OutputStream provideXmlStream(JUnit4Config config) { @@ -111,7 +94,7 @@ public final class JUnit4RunnerModule { }; } - @Provides @Singleton + @Singleton SettableCurrentRunningTest provideCurrentRunningTest() { return new SettableCurrentRunningTest() { @Override |