JaxrsExceptionTestHelper#assertContainsError should report actual errors #376
Labels
enhancement
A request for change or improvement to an existing feature
Milestone
JaxrsExceptionTestHelper#assertContainsError(response, statusCode, substring)
reports an error when aResponse
does not have the given HTTP status code and does not contain anErrorMessage
whosemessage
contains the givensubstring
. For example:However, it does not provide any information about what it actually contains, which is needed to help determine what went wrong. Without this information the only way I have found is to use the debugger to inspect the actual ErrorMessage(s).
This task is to enhance the method with information about the actual ErrorMessage(s) that were found in the Response, or none if there weren't any. The information should include all the information from the ErrorMessage(s) - status code, field name, item ID, and message.
The text was updated successfully, but these errors were encountered: