|
|
@ -101,6 +101,15 @@ public class ResponseEntityTests { |
|
|
|
assertNull(responseEntity.getBody()); |
|
|
|
assertNull(responseEntity.getBody()); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Test |
|
|
|
|
|
|
|
public void badRequest() throws URISyntaxException { |
|
|
|
|
|
|
|
ResponseEntity<Void> responseEntity = ResponseEntity.badRequest().build(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
assertNotNull(responseEntity); |
|
|
|
|
|
|
|
assertEquals(HttpStatus.BAD_REQUEST, responseEntity.getStatusCode()); |
|
|
|
|
|
|
|
assertNull(responseEntity.getBody()); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Test |
|
|
|
@Test |
|
|
|
public void notFound() throws URISyntaxException { |
|
|
|
public void notFound() throws URISyntaxException { |
|
|
|
ResponseEntity<Void> responseEntity = ResponseEntity.notFound().build(); |
|
|
|
ResponseEntity<Void> responseEntity = ResponseEntity.notFound().build(); |
|
|
|