aboutsummaryrefslogtreecommitdiffstats
path: root/it/it-tests/src
diff options
context:
space:
mode:
authorJulien Lancelot <julien.lancelot@sonarsource.com>2017-05-16 18:09:11 +0200
committerJulien Lancelot <julien.lancelot@sonarsource.com>2017-06-09 10:09:25 +0200
commit2533bda1fe053c1e05c8814e6bc54e4e8b1d054e (patch)
treec5eaceecb328b08615a3a493dc0ea7e69d3bbb7f /it/it-tests/src
parent913c74211cbc0088068cd679026befcaf16f0f8a (diff)
downloadsonarqube-2533bda1fe053c1e05c8814e6bc54e4e8b1d054e.tar.gz
sonarqube-2533bda1fe053c1e05c8814e6bc54e4e8b1d054e.zip
SONAR-8787 WS should return 404 on removed components
Diffstat (limited to 'it/it-tests/src')
-rw-r--r--it/it-tests/src/test/java/it/analysis/IssuesModeTest.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/it/it-tests/src/test/java/it/analysis/IssuesModeTest.java b/it/it-tests/src/test/java/it/analysis/IssuesModeTest.java
index d185ee70a75..0b96a811bd3 100644
--- a/it/it-tests/src/test/java/it/analysis/IssuesModeTest.java
+++ b/it/it-tests/src/test/java/it/analysis/IssuesModeTest.java
@@ -61,7 +61,6 @@ import util.ItUtils;
import static org.assertj.core.api.Assertions.assertThat;
import static org.junit.Assert.fail;
import static util.ItUtils.getComponent;
-import static util.ItUtils.getMeasureAsDouble;
public class IssuesModeTest {
@@ -255,13 +254,13 @@ public class IssuesModeTest {
// Second scan should remove ClassAdded.xoo
runner = configureRunner("shared/xoo-history-v1");
orchestrator.executeBuild(runner);
- assertThat(getMeasureAsDouble(orchestrator, "sample:src/main/xoo/sample/ClassAdded.xoo", "ncloc")).isNull();
+ assertThat(getComponent(orchestrator, "sample:src/main/xoo/sample/ClassAdded.xoo")).isNull();
// Re-add ClassAdded.xoo in local workspace
runner = configureRunnerIssues("shared/xoo-history-v2", null);
BuildResult result = orchestrator.executeBuild(runner);
- assertThat(getMeasureAsDouble(orchestrator, "sample:src/main/xoo/sample/ClassAdded.xoo", "ncloc")).isNull();
+ assertThat(getComponent(orchestrator, "sample:src/main/xoo/sample/ClassAdded.xoo")).isNull();
assertThat(result.getLogs()).contains("Issues");
assertThat(result.getLogs()).contains("ANALYSIS SUCCESSFUL");
}