1
json 데이터를 게시하려는 테스트 케이스가 있는데, 지금 404가 나오는데 여기서 뭔가 잘못하고있는 것입니까?WSRequest POST FunctionalTest에서 JSON 객체가 404가된다.
@Test
public void testIndex() {
User user = new User("[email protected]", "secret", "test", "(111)111-1111");
Gson gson = new Gson();
String postJson = gson.toJson(user);
// post to add the new user
WSRequest postRequest = WS.url("http://localhost:9001/user/add");
postRequest.body = postJson;
HttpResponse postResponse = postRequest.post();
assertEquals(postResponse.getStatus(), (Integer)200);
}