diff options
author | Godin <mandrikov@gmail.com> | 2010-10-18 17:10:04 +0000 |
---|---|---|
committer | Godin <mandrikov@gmail.com> | 2010-10-18 17:10:04 +0000 |
commit | 3116fb2315d23b9c4c5b88c6f5f17601e43eeccc (patch) | |
tree | dc021d4566ddd0b9da819b122013e6ac5e8ffd26 | |
parent | c1a12d6ef28705148f3b255e50d8cd98604afeac (diff) | |
download | sonarqube-3116fb2315d23b9c4c5b88c6f5f17601e43eeccc.tar.gz sonarqube-3116fb2315d23b9c4c5b88c6f5f17601e43eeccc.zip |
SONAR-1784: Move AbstractSurefireParser to package org.sonar.plugins.surefire.api
-rw-r--r-- | plugins/sonar-surefire-plugin/src/main/java/org/sonar/plugins/surefire/SurefireSensor.java | 1 | ||||
-rw-r--r-- | plugins/sonar-surefire-plugin/src/main/java/org/sonar/plugins/surefire/api/AbstractSurefireParser.java (renamed from plugins/sonar-surefire-plugin/src/main/java/org/sonar/plugins/surefire/AbstractSurefireParser.java) | 7 |
2 files changed, 6 insertions, 2 deletions
diff --git a/plugins/sonar-surefire-plugin/src/main/java/org/sonar/plugins/surefire/SurefireSensor.java b/plugins/sonar-surefire-plugin/src/main/java/org/sonar/plugins/surefire/SurefireSensor.java index a4d4335d1d7..81cdd4279ce 100644 --- a/plugins/sonar-surefire-plugin/src/main/java/org/sonar/plugins/surefire/SurefireSensor.java +++ b/plugins/sonar-surefire-plugin/src/main/java/org/sonar/plugins/surefire/SurefireSensor.java @@ -32,6 +32,7 @@ import org.sonar.api.resources.Java; import org.sonar.api.resources.JavaFile; import org.sonar.api.resources.Project; import org.sonar.api.resources.Resource; +import org.sonar.plugins.surefire.api.AbstractSurefireParser; import java.io.File; diff --git a/plugins/sonar-surefire-plugin/src/main/java/org/sonar/plugins/surefire/AbstractSurefireParser.java b/plugins/sonar-surefire-plugin/src/main/java/org/sonar/plugins/surefire/api/AbstractSurefireParser.java index 56adade806a..bc2e18d7d46 100644 --- a/plugins/sonar-surefire-plugin/src/main/java/org/sonar/plugins/surefire/AbstractSurefireParser.java +++ b/plugins/sonar-surefire-plugin/src/main/java/org/sonar/plugins/surefire/api/AbstractSurefireParser.java @@ -1,4 +1,4 @@ -package org.sonar.plugins.surefire; +package org.sonar.plugins.surefire.api; import org.apache.commons.lang.StringEscapeUtils; import org.apache.commons.lang.StringUtils; @@ -11,6 +11,9 @@ import org.sonar.api.resources.Resource; import org.sonar.api.utils.ParsingUtils; import org.sonar.api.utils.StaxParser; import org.sonar.api.utils.XmlParserException; +import org.sonar.plugins.surefire.TestCaseDetails; +import org.sonar.plugins.surefire.TestSuiteParser; +import org.sonar.plugins.surefire.TestSuiteReport; import java.io.File; import java.io.FilenameFilter; @@ -25,7 +28,7 @@ import javax.xml.transform.TransformerException; */ public abstract class AbstractSurefireParser { - protected void collect(Project project, SensorContext context, File reportsDir) { + public void collect(Project project, SensorContext context, File reportsDir) { File[] xmlFiles = getReports(reportsDir); if (xmlFiles.length == 0) { |