aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-ws-client/src/test/java/org/sonar
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@gmail.com>2013-06-27 16:40:02 +0200
committerSimon Brandhof <simon.brandhof@gmail.com>2013-06-27 16:40:11 +0200
commitd4871cf6f13b2bbe86e1edbe596e32c236ef4c2c (patch)
tree1c2911e46204993c9679c6e1db3080ca424d6949 /sonar-ws-client/src/test/java/org/sonar
parent6821732d7e83b0bcd4d886441d689707cad05e5c (diff)
downloadsonarqube-d4871cf6f13b2bbe86e1edbe596e32c236ef4c2c.tar.gz
sonarqube-d4871cf6f13b2bbe86e1edbe596e32c236ef4c2c.zip
SONAR-4411 refactor ws-client for user deactivation
Diffstat (limited to 'sonar-ws-client/src/test/java/org/sonar')
-rw-r--r--sonar-ws-client/src/test/java/org/sonar/wsclient/user/DefaultUserClientTest.java7
1 files changed, 3 insertions, 4 deletions
diff --git a/sonar-ws-client/src/test/java/org/sonar/wsclient/user/DefaultUserClientTest.java b/sonar-ws-client/src/test/java/org/sonar/wsclient/user/DefaultUserClientTest.java
index 2a7ea302491..90e6865f28b 100644
--- a/sonar-ws-client/src/test/java/org/sonar/wsclient/user/DefaultUserClientTest.java
+++ b/sonar-ws-client/src/test/java/org/sonar/wsclient/user/DefaultUserClientTest.java
@@ -89,13 +89,12 @@ public class DefaultUserClientTest {
}
@Test
- public void should_delete_user() throws Exception {
+ public void should_deactivate_user() throws Exception {
httpServer.stubStatusCode(200);
- UserParameters params = UserParameters.create().login("daveloper");
- client.delete(params);
+ client.deactivate("daveloper");
- assertThatRequestUrlContains("/api/users/delete?", "login=daveloper");
+ assertThatRequestUrlContains("/api/users/deactivate?", "login=daveloper");
}
private void assertThatRequestUrlContains(String baseUrl, String... parameters) {