use of com.tvd12.ezyhttp.core.response.ResponseEntity in project ezyhttp by youngmonkeys.
the class ResponseEntityTest method createByNotFoundAndBody.
@Test
public void createByNotFoundAndBody() {
// given
Object body = "Hello World";
// when
ResponseEntity sut = ResponseEntity.notFound(body);
// then
Asserts.assertEquals(StatusCodes.NOT_FOUND, sut.getStatus());
Asserts.assertEquals(body, sut.getBody());
}
Aggregations