javaee7-samples icon indicating copy to clipboard operation
javaee7-samples copied to clipboard

jaxrs resource validation test should check status code not status info for equality

Open buttso opened this issue 10 years ago • 0 comments

The jax-rs resource-validation test uses an assertion that checks Response.StatusType for equality which may not be standard across implementations. ie reason phrase is not mandated - is that considered as part of the equality check? Should check the statusCode of the expected StatusType versus reponse.getStatusCode() to be more specific.

buttso avatar Jun 19 '15 02:06 buttso