Permalink
Browse files

Fixing endpoint reference

  • Loading branch information...
1 parent 7cfe40b commit 98fa35f5b2c3d902b12d67f3bd7a15b62193b167 Bruno Oliveira committed Mar 28, 2012
@@ -50,7 +50,7 @@ public void shouldReturnSuccessfulStatus() throws Exception {
String password = "pass";
String domain = "test";
- ClientRequest request = new ClientRequest(deploymentUrl.toString() + RESOURCE_PREFIX + "/getUser/1");
+ ClientRequest request = new ClientRequest(deploymentUrl.toString() + RESOURCE_PREFIX + "/user/1");
request.header("Accept", MediaType.APPLICATION_JSON);
request.header("Auth-Password", password);
request.header("Auth-Credential", username);
@@ -67,7 +67,7 @@ public void shouldReturnUnauthorizedStatus() throws Exception {
String password = "pass";
String domain = "test";
- ClientRequest request = new ClientRequest(deploymentUrl.toString() + RESOURCE_PREFIX + "/getUser/1");
+ ClientRequest request = new ClientRequest(deploymentUrl.toString() + RESOURCE_PREFIX + "/user/1");
request.header("Accept", MediaType.APPLICATION_JSON);
request.header("Auth-Password", password);
request.header("Auth-Credential", username);
@@ -8,7 +8,7 @@
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;
-@Path("/getUser/{id:[1-9][0-9]*}")
+@Path("/user/{id:[1-9][0-9]*}")
public class Dummy {
@GET

0 comments on commit 98fa35f

Please sign in to comment.