@Test public void testJsonSyntaxExceptionMapper() { JsonSyntaxExceptionMapper mapper = new JsonSyntaxExceptionMapper(); Response response = mapper.toResponse(new JsonSyntaxException(cause)); assertNotNull(response); assertEquals(BAD_REQUEST, response.getStatus()); }
@Override public Response toResponse(JsonSyntaxException e) { return Response.status(Response.Status.BAD_REQUEST).entity(e.getMessage()).type(MediaType.TEXT_PLAIN).build(); }
JsonSyntaxExceptionMapper implements ExceptionMapper<JsonSyntaxException> { @Override public Response toResponse(JsonSyntaxException e) { return Response.status(Response.Status.BAD_REQUEST).entity(e.getMessage()).type(MediaType.TEXT_PLAIN).build(); } }
JsonSyntaxExceptionMapper implements ExceptionMapper<JsonSyntaxException> { @Override public Response toResponse(JsonSyntaxException e) { return Response.status(Response.Status.BAD_REQUEST).entity(e.getMessage()).type(MediaType.TEXT_PLAIN).build(); }  }
JsonSyntaxExceptionMapper implements ExceptionMapper<JsonSyntaxException> { @Override public Response toResponse(JsonSyntaxException e) { return Response.status(Response.Status.BAD_REQUEST).entity(e.getMessage()).type(MediaType.TEXT_PLAIN).build(); }  @Override Response toResponse(JsonSyntaxException e); }
JsonSyntaxExceptionMapper implements ExceptionMapper<JsonSyntaxException> { @Override public Response toResponse(JsonSyntaxException e) { return Response.status(Response.Status.BAD_REQUEST).entity(e.getMessage()).type(MediaType.TEXT_PLAIN).build(); }  @Override Response toResponse(JsonSyntaxException e);  }