@Test public void testFullAddWithoutDB() { Person p = AddController.personFromRequest(json); assertTrue(p != null); assertTrue(p.name.equals("JOHN SMITH")); assertTrue(p.role.equals(Role.DEV)); assertTrue(p.resumeInfo != null); assertTrue(p.qaResponses.get(0).equals("answer to question 1")); assertTrue(p.qaResponses.get(2).equals("answer to question n")); assertTrue(p.image_url.equals("http: assertTrue(p.group.equals("CANDIDATE")); assertTrue(p.traits.size() > 50); }
protected static Person personFromRequest(String json) { AddPersonRequest apr = JsonUtils.getAPRFromJson(json); Person p = AddPersonRequest.toPerson(apr); return p; }
AddController { protected static Person personFromRequest(String json) { AddPersonRequest apr = JsonUtils.getAPRFromJson(json); Person p = AddPersonRequest.toPerson(apr); return p; } }
AddController { protected static Person personFromRequest(String json) { AddPersonRequest apr = JsonUtils.getAPRFromJson(json); Person p = AddPersonRequest.toPerson(apr); return p; }  }
AddController { protected static Person personFromRequest(String json) { AddPersonRequest apr = JsonUtils.getAPRFromJson(json); Person p = AddPersonRequest.toPerson(apr); return p; }  @POST @Consumes(MediaType.TEXT_PLAIN) Response handle(String json); }
AddController { protected static Person personFromRequest(String json) { AddPersonRequest apr = JsonUtils.getAPRFromJson(json); Person p = AddPersonRequest.toPerson(apr); return p; }  @POST @Consumes(MediaType.TEXT_PLAIN) Response handle(String json);  }