diff options
author | 2016-06-03 21:50:50 +0000 | |
---|---|---|
committer | 2016-06-06 08:03:24 +0000 | |
commit | 91d3433f34c87ac9f354a4a87a322e5a14531607 (patch) | |
tree | bcd04cb1969a3ba7760a9f99acad4be927c10219 /src/java_tools/junitrunner/java/com/google/testing/junit/runner/model/AntXmlResultWriter.java | |
parent | 1d70780d78d4c4c79b00c09ab60820be75cb87bb (diff) |
Convert the Bazel JUnit4 test runner from Guice to Dagger.
--
MOS_MIGRATED_REVID=124008772
Diffstat (limited to 'src/java_tools/junitrunner/java/com/google/testing/junit/runner/model/AntXmlResultWriter.java')
-rw-r--r-- | src/java_tools/junitrunner/java/com/google/testing/junit/runner/model/AntXmlResultWriter.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/java_tools/junitrunner/java/com/google/testing/junit/runner/model/AntXmlResultWriter.java b/src/java_tools/junitrunner/java/com/google/testing/junit/runner/model/AntXmlResultWriter.java index d2ead679c4..29d983ac4a 100644 --- a/src/java_tools/junitrunner/java/com/google/testing/junit/runner/model/AntXmlResultWriter.java +++ b/src/java_tools/junitrunner/java/com/google/testing/junit/runner/model/AntXmlResultWriter.java @@ -25,6 +25,8 @@ import java.io.PrintWriter; import java.io.StringWriter; import java.util.Map.Entry; +import javax.inject.Inject; + /** * Writes the JUnit test nodes and their results into Ant-JUnit XML. Ant-JUnit XML is not a * standardized format. For this implementation the @@ -59,6 +61,9 @@ public final class AntXmlResultWriter implements XmlResultWriter { private int testSuiteId; + @Inject + public AntXmlResultWriter() {} + @Override public void writeTestSuites(XmlWriter writer, TestResult result) throws IOException { testSuiteId = 0; |