diff options
author | Jean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com> | 2014-05-05 15:16:18 +0200 |
---|---|---|
committer | Jean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com> | 2014-05-05 15:36:51 +0200 |
commit | 5fc90d5d8a59460eef1776a5c6013912105c53b8 (patch) | |
tree | 6dc0d6cd1fb7012c446bff8698ca9c3dbebca074 /sonar-ws-client | |
parent | beeb454dd1053cbc980a48920e2b7297fa8b64bd (diff) | |
download | sonarqube-5fc90d5d8a59460eef1776a5c6013912105c53b8.tar.gz sonarqube-5fc90d5d8a59460eef1776a5c6013912105c53b8.zip |
SONAR-5111 Split quality profiles WS into old style Rails description and new dedicated Java WS
Diffstat (limited to 'sonar-ws-client')
2 files changed, 2 insertions, 2 deletions
diff --git a/sonar-ws-client/src/main/java/org/sonar/wsclient/qprofile/internal/DefaultQProfileClient.java b/sonar-ws-client/src/main/java/org/sonar/wsclient/qprofile/internal/DefaultQProfileClient.java index f0ce08cd502..4948228eb03 100644 --- a/sonar-ws-client/src/main/java/org/sonar/wsclient/qprofile/internal/DefaultQProfileClient.java +++ b/sonar-ws-client/src/main/java/org/sonar/wsclient/qprofile/internal/DefaultQProfileClient.java @@ -38,7 +38,7 @@ public class DefaultQProfileClient implements QProfileClient { @Override public QProfileResult restoreDefault(String language) { - String json = requestFactory.post("/api/qprofiles/restore_default", Collections.singletonMap("language", (Object) language)); + String json = requestFactory.post("/api/qualityprofiles/restore_default", Collections.singletonMap("language", (Object) language)); Map jsonRoot = (Map) JSONValue.parse(json); return new DefaultQProfileResult(jsonRoot); } diff --git a/sonar-ws-client/src/test/java/org/sonar/wsclient/qprofile/internal/DefaultQProfileClientTest.java b/sonar-ws-client/src/test/java/org/sonar/wsclient/qprofile/internal/DefaultQProfileClientTest.java index cfd5bce80de..9ee9ed21d4a 100644 --- a/sonar-ws-client/src/test/java/org/sonar/wsclient/qprofile/internal/DefaultQProfileClientTest.java +++ b/sonar-ws-client/src/test/java/org/sonar/wsclient/qprofile/internal/DefaultQProfileClientTest.java @@ -43,7 +43,7 @@ public class DefaultQProfileClientTest { DefaultQProfileClient client = new DefaultQProfileClient(requestFactory); QProfileResult result = client.restoreDefault("java"); - assertThat(httpServer.requestedPath()).isEqualTo("/api/qprofiles/restore_default"); + assertThat(httpServer.requestedPath()).isEqualTo("/api/qualityprofiles/restore_default"); assertThat(httpServer.requestParams()).includes( entry("language", "java") ); |