diff options
author | Duarte Meneses <duarte.meneses@sonarsource.com> | 2016-02-03 09:26:49 +0100 |
---|---|---|
committer | Duarte Meneses <duarte.meneses@sonarsource.com> | 2016-02-03 09:26:49 +0100 |
commit | dd78cdddc241e85d4fa67a1a8eb1847cf9ebe2c5 (patch) | |
tree | 9774bf0bcfe87a2e8bea77ab4a1c18f8b9de2cd2 /it | |
parent | df7d5e0f8c3a7e7f60db415fcca554783dd73304 (diff) | |
download | sonarqube-dd78cdddc241e85d4fa67a1a8eb1847cf9ebe2c5.tar.gz sonarqube-dd78cdddc241e85d4fa67a1a8eb1847cf9ebe2c5.zip |
Fix IT
Diffstat (limited to 'it')
-rw-r--r-- | it/it-tests/src/test/java/it/analysis/TempFolderTest.java | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/it/it-tests/src/test/java/it/analysis/TempFolderTest.java b/it/it-tests/src/test/java/it/analysis/TempFolderTest.java index 5053eb4dc8c..8d58c1ff4e3 100644 --- a/it/it-tests/src/test/java/it/analysis/TempFolderTest.java +++ b/it/it-tests/src/test/java/it/analysis/TempFolderTest.java @@ -25,6 +25,8 @@ import com.sonar.orchestrator.build.SonarRunner; import com.sonar.orchestrator.locator.FileLocation; import it.Category3Suite; import java.io.File; +import java.io.IOException; + import org.junit.Before; import org.junit.ClassRule; import org.junit.Rule; @@ -56,7 +58,7 @@ public class TempFolderTest { // SONAR-4748 @Test - public void should_create_in_temp_folder() { + public void should_create_in_temp_folder() throws IOException { File projectDir = ItUtils.projectDir("shared/xoo-sample"); BuildResult result = scan(); @@ -65,9 +67,9 @@ public class TempFolderTest { result = scan("sonar.createTempFiles", "true"); assertThat(result.getLogs()).contains( - "Creating temp directory: " + projectDir.getAbsolutePath() + File.separator + ".sonar" + File.separator + ".sonartmp" + File.separator + "sonar-it"); + "Creating temp directory: " + projectDir.getCanonicalPath() + File.separator + ".sonar" + File.separator + ".sonartmp" + File.separator + "sonar-it"); assertThat(result.getLogs()).contains( - "Creating temp file: " + projectDir.getAbsolutePath() + File.separator + ".sonar" + File.separator + ".sonartmp" + File.separator + "sonar-it"); + "Creating temp file: " + projectDir.getCanonicalPath() + File.separator + ".sonar" + File.separator + ".sonartmp" + File.separator + "sonar-it"); // Verify temp folder is deleted after analysis assertThat(new File(projectDir, ".sonar/.sonartmp/sonar-it")).doesNotExist(); |