diff options
author | Julien Lancelot <julien.lancelot@sonarsource.com> | 2016-06-27 11:07:27 +0200 |
---|---|---|
committer | Julien Lancelot <julien.lancelot@sonarsource.com> | 2016-06-29 08:41:53 +0200 |
commit | 22b483458fdd132efe8a717624ea4b47ad37bba6 (patch) | |
tree | 217f9fefe750ddd6a6ced7224f481cf4231ab277 /it/it-tests/src | |
parent | a2c1cc8cd4a407aba13d733330fb5308a1f5168e (diff) | |
download | sonarqube-22b483458fdd132efe8a717624ea4b47ad37bba6.tar.gz sonarqube-22b483458fdd132efe8a717624ea4b47ad37bba6.zip |
SONAR-7759 Java WS are not executed by Rails
Diffstat (limited to 'it/it-tests/src')
-rw-r--r-- | it/it-tests/src/test/java/it/component/ProjectSearchTest.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/it/it-tests/src/test/java/it/component/ProjectSearchTest.java b/it/it-tests/src/test/java/it/component/ProjectSearchTest.java index 0bd21727022..01827629ba1 100644 --- a/it/it-tests/src/test/java/it/component/ProjectSearchTest.java +++ b/it/it-tests/src/test/java/it/component/ProjectSearchTest.java @@ -19,6 +19,9 @@ */ package it.component; +import static org.assertj.core.api.Assertions.assertThat; +import static util.ItUtils.projectDir; + import com.sonar.orchestrator.Orchestrator; import com.sonar.orchestrator.build.SonarRunner; import it.Category4Suite; @@ -35,9 +38,6 @@ import org.junit.Test; import org.junit.experimental.categories.Category; import util.QaOnly; -import static org.assertj.core.api.Assertions.assertThat; -import static util.ItUtils.projectDir; - @Category(QaOnly.class) public class ProjectSearchTest { @@ -58,7 +58,7 @@ public class ProjectSearchTest { SonarRunner build = SonarRunner.create(projectDir("shared/xoo-sample")); orchestrator.executeBuild(build); - String url = orchestrator.getServer().getUrl() + "/api/projects?key=sample&versions=true"; + String url = orchestrator.getServer().getUrl() + "/api/projects/index?key=sample&versions=true"; HttpClient httpclient = new DefaultHttpClient(); try { HttpGet get = new HttpGet(url); |