From 9f5c972af80f83c834db50dacaa98144d0205b46 Mon Sep 17 00:00:00 2001 From: Duarte Meneses Date: Thu, 20 Aug 2015 17:54:02 +0200 Subject: Don't recreate working directory --- it/src/test/java/com/sonar/runner/it/CacheTest.java | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) (limited to 'it') 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 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); } -- cgit v1.2.3