コード例 #1
0
 @Test
 public void addingPersonWithMultiplePeopleFound() {
   assertStatusCodeEqualsForRequestUriAndHttpMethodAndEntity(
       409,
       RESOURCE_UNDER_TEST_URI,
       POST_HTTP_METHOD,
       PersonRequestRepresentation.forMultiplePeople());
 }
コード例 #2
0
 @Test
 public void forceAddingPersonWithMultiplePeopleFound() {
   assertNotNull(
       assertStatusCodeEqualsForRequestUriAndHttpMethodAndEntityWithQueryParam(
               201,
               RESOURCE_UNDER_TEST_URI,
               POST_HTTP_METHOD,
               PersonRequestRepresentation.forMultiplePeople(),
               "force",
               "y")
           .getHeaders()
           .getFirst("Location"));
 }