Update unprocessableEntity to allow body

Issue: SPR-12515
This commit is contained in:
Rossen Stoyanchev
2014-12-08 16:19:14 -05:00
parent 33fca4e7ae
commit 0524a82c09
2 changed files with 3 additions and 3 deletions

View File

@@ -122,11 +122,11 @@ public class ResponseEntityTests {
@Test
public void unprocessableEntity() throws URISyntaxException {
ResponseEntity<Void> responseEntity = ResponseEntity.unprocessableEntity().build();
ResponseEntity<String> responseEntity = ResponseEntity.unprocessableEntity().body("error");
assertNotNull(responseEntity);
assertEquals(HttpStatus.UNPROCESSABLE_ENTITY, responseEntity.getStatusCode());
assertNull(responseEntity.getBody());
assertEquals("error", responseEntity.getBody());
}
@Test