summaryrefslogtreecommitdiffstats
path: root/sonar-ws-client
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@gmail.com>2013-05-14 18:43:14 +0200
committerSimon Brandhof <simon.brandhof@gmail.com>2013-05-14 19:08:12 +0200
commit349eafcd5db96d0c206af7e2f9b67d24696afca6 (patch)
tree220e4bf4cd7f9542ae66c113908cb533cf88d605 /sonar-ws-client
parentf5f73537f6b8bf961cd189c93ed2b256dd66c7a2 (diff)
downloadsonarqube-349eafcd5db96d0c206af7e2f9b67d24696afca6.tar.gz
sonarqube-349eafcd5db96d0c206af7e2f9b67d24696afca6.zip
SONAR-3755 UI for adding comments
Diffstat (limited to 'sonar-ws-client')
-rw-r--r--sonar-ws-client/src/main/java/org/sonar/wsclient/user/UserQuery.java4
-rw-r--r--sonar-ws-client/src/test/java/org/sonar/wsclient/user/UserQueryTest.java2
2 files changed, 3 insertions, 3 deletions
diff --git a/sonar-ws-client/src/main/java/org/sonar/wsclient/user/UserQuery.java b/sonar-ws-client/src/main/java/org/sonar/wsclient/user/UserQuery.java
index 07f802fb8a9..43d0e33c6ac 100644
--- a/sonar-ws-client/src/main/java/org/sonar/wsclient/user/UserQuery.java
+++ b/sonar-ws-client/src/main/java/org/sonar/wsclient/user/UserQuery.java
@@ -52,9 +52,9 @@ public class UserQuery {
public UserQuery searchText(@Nullable String s) {
if (s != null) {
- params.put("q", s);
+ params.put("s", s);
} else {
- params.remove("q");
+ params.remove("s");
}
return this;
}
diff --git a/sonar-ws-client/src/test/java/org/sonar/wsclient/user/UserQueryTest.java b/sonar-ws-client/src/test/java/org/sonar/wsclient/user/UserQueryTest.java
index fbb9b4d26a1..475e95c4f70 100644
--- a/sonar-ws-client/src/test/java/org/sonar/wsclient/user/UserQueryTest.java
+++ b/sonar-ws-client/src/test/java/org/sonar/wsclient/user/UserQueryTest.java
@@ -52,6 +52,6 @@ public class UserQueryTest {
@Test
public void should_search_by_text() throws Exception {
UserQuery query = UserQuery.create().searchText("sim");
- assertThat(query.urlParams().get("q")).isEqualTo("sim");
+ assertThat(query.urlParams().get("s")).isEqualTo("sim");
}
}