diff options
author | Jacek <jacek.poreda@sonarsource.com> | 2019-10-31 10:36:24 +0100 |
---|---|---|
committer | SonarTech <sonartech@sonarsource.com> | 2019-11-08 20:21:13 +0100 |
commit | 27d2f9f67e536f4186d3b763aa8c88e147a31eb0 (patch) | |
tree | cbec1d5c01c86ac537580869ac935d9aaf9e7783 /sonar-plugin-api-impl | |
parent | 535bc2b8da7e3f5f19c9bea4ab0a3722da10ffa2 (diff) | |
download | sonarqube-27d2f9f67e536f4186d3b763aa8c88e147a31eb0.tar.gz sonarqube-27d2f9f67e536f4186d3b763aa8c88e147a31eb0.zip |
SONAR-12630 reorganize log results
Diffstat (limited to 'sonar-plugin-api-impl')
-rw-r--r-- | sonar-plugin-api-impl/src/main/java/org/sonar/api/impl/utils/JUnitTempFolder.java | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/sonar-plugin-api-impl/src/main/java/org/sonar/api/impl/utils/JUnitTempFolder.java b/sonar-plugin-api-impl/src/main/java/org/sonar/api/impl/utils/JUnitTempFolder.java index a52da93ca7c..08eb33266b1 100644 --- a/sonar-plugin-api-impl/src/main/java/org/sonar/api/impl/utils/JUnitTempFolder.java +++ b/sonar-plugin-api-impl/src/main/java/org/sonar/api/impl/utils/JUnitTempFolder.java @@ -19,6 +19,9 @@ */ package org.sonar.api.impl.utils; +import java.io.File; +import java.io.IOException; +import javax.annotation.Nullable; import org.apache.commons.lang.StringUtils; import org.junit.rules.ExternalResource; import org.junit.rules.TemporaryFolder; @@ -26,11 +29,6 @@ import org.junit.runner.Description; import org.junit.runners.model.Statement; import org.sonar.api.utils.TempFolder; -import javax.annotation.Nullable; - -import java.io.File; -import java.io.IOException; - /** * Implementation of {@link org.sonar.api.utils.TempFolder} to be used * only in JUnit tests. It wraps {@link org.junit.rules.TemporaryFolder}. @@ -105,4 +103,8 @@ public class JUnitTempFolder extends ExternalResource implements TempFolder { throw new IllegalStateException("Fail to create temp file", e); } } + + public File getRoot() { + return junit.getRoot(); + } } |