mirror of
https://github.com/Kingsrook/qqq.git
synced 2025-07-18 05:01:07 +00:00
Fix delete test for error handling from customizers
This commit is contained in:
@ -1239,7 +1239,8 @@ class QJavalinApiHandlerTest extends BaseTest
|
||||
assertErrorResponse(HttpStatus.BAD_REQUEST_400, "You may not delete this person", response);
|
||||
|
||||
response = Unirest.delete(BASE_URL + "/api/" + VERSION + "/person/" + TestUtils.PersonPreDeleteCustomizer.DELETE_WARN_ID).asString();
|
||||
assertErrorResponse(HttpStatus.NO_CONTENT_204, "It was bad that you deleted this person", response);
|
||||
assertEquals(HttpStatus.NO_CONTENT_204, response.getStatus());
|
||||
assertFalse(StringUtils.hasContent(response.getBody()));
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user