aboutsummaryrefslogtreecommitdiffstats
path: root/it
diff options
context:
space:
mode:
authorDuarte Meneses <duarte.meneses@sonarsource.com>2015-08-20 17:54:02 +0200
committerDuarte Meneses <duarte.meneses@sonarsource.com>2015-08-20 17:54:02 +0200
commit9f5c972af80f83c834db50dacaa98144d0205b46 (patch)
tree3191b1878be905308f4841393d4897cc472ec768 /it
parent3151ec7592230c37ee7c768fa844964197d60a83 (diff)
downloadsonar-scanner-cli-9f5c972af80f83c834db50dacaa98144d0205b46.tar.gz
sonar-scanner-cli-9f5c972af80f83c834db50dacaa98144d0205b46.zip
Don't recreate working directory
Diffstat (limited to 'it')
-rw-r--r--it/src/test/java/com/sonar/runner/it/CacheTest.java14
1 files changed, 1 insertions, 13 deletions
diff --git a/it/src/test/java/com/sonar/runner/it/CacheTest.java b/it/src/test/java/com/sonar/runner/it/CacheTest.java
index d4c82ec..df6186f 100644
--- a/it/src/test/java/com/sonar/runner/it/CacheTest.java
+++ b/it/src/test/java/com/sonar/runner/it/CacheTest.java
@@ -19,8 +19,6 @@
*/
package com.sonar.runner.it;
-import org.sonar.wsclient.issue.Issue;
-import org.sonar.wsclient.issue.IssueQuery;
import org.junit.BeforeClass;
import org.junit.rules.TemporaryFolder;
import org.junit.Rule;
@@ -32,7 +30,6 @@ import org.junit.Test;
import java.io.File;
import java.io.IOException;
-import java.util.List;
import static org.assertj.core.api.Assertions.assertThat;
@@ -45,7 +42,6 @@ public class CacheTest extends RunnerTestCase {
@BeforeClass
public static void setUpClass() {
- System.out.println("SETTING UP");
orchestrator.getServer().restoreProfile(ResourceLocation.create("/sonar-way-profile.xml"));
orchestrator.getServer().provisionProject("java:sample", "Java Sample, with comma");
orchestrator.getServer().associateProjectToQualityProfile("java:sample", "java", "sonar-way");
@@ -96,8 +92,7 @@ public class CacheTest extends RunnerTestCase {
SonarRunner build = createRunner("publish");
BuildResult result = orchestrator.executeBuild(build, false);
assertThat(result.isSuccess()).isTrue();
- getIssues();
-
+
// offline (cache not used) -> should fail
ensureStopped();
build = createRunner("publish", false);
@@ -109,13 +104,6 @@ public class CacheTest extends RunnerTestCase {
}
- private void getIssues() {
- List<Issue> issues = orchestrator.getServer().wsClient().issueClient()
- .find(IssueQuery.create()).list();
- System.out.println(issues.size());
-
- }
-
private SonarRunner createRunner(String mode) throws IOException {
return createRunner(mode, false);
}