aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-ws-client
diff options
context:
space:
mode:
authorJean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com>2014-05-05 15:16:18 +0200
committerJean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com>2014-05-05 15:36:51 +0200
commit5fc90d5d8a59460eef1776a5c6013912105c53b8 (patch)
tree6dc0d6cd1fb7012c446bff8698ca9c3dbebca074 /sonar-ws-client
parentbeeb454dd1053cbc980a48920e2b7297fa8b64bd (diff)
downloadsonarqube-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')
-rw-r--r--sonar-ws-client/src/main/java/org/sonar/wsclient/qprofile/internal/DefaultQProfileClient.java2
-rw-r--r--sonar-ws-client/src/test/java/org/sonar/wsclient/qprofile/internal/DefaultQProfileClientTest.java2
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")
);