From 2533bda1fe053c1e05c8814e6bc54e4e8b1d054e Mon Sep 17 00:00:00 2001 From: Julien Lancelot Date: Tue, 16 May 2017 18:09:11 +0200 Subject: SONAR-8787 WS should return 404 on removed components --- it/it-tests/src/test/java/it/analysis/IssuesModeTest.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'it/it-tests/src') 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"); } -- cgit v1.2.3