@Test public void testResourceNotFoundExceptionMapper() { Response res = mapper.toResponse(new ResourceNotFoundException("test")); assertEquals(res.getStatus(), Response.Status.NOT_FOUND.getStatusCode()); }
@Override public Response toResponse(ResourceNotFoundException exception) { return Response.status(Response.Status.NOT_FOUND) .entity(exception.getMessage()) .build(); }
ResourceNotFoundExceptionMapper implements ExceptionMapper<ResourceNotFoundException> { @Override public Response toResponse(ResourceNotFoundException exception) { return Response.status(Response.Status.NOT_FOUND) .entity(exception.getMessage()) .build(); } }
ResourceNotFoundExceptionMapper implements ExceptionMapper<ResourceNotFoundException> { @Override public Response toResponse(ResourceNotFoundException exception) { return Response.status(Response.Status.NOT_FOUND) .entity(exception.getMessage()) .build(); }  }
ResourceNotFoundExceptionMapper implements ExceptionMapper<ResourceNotFoundException> { @Override public Response toResponse(ResourceNotFoundException exception) { return Response.status(Response.Status.NOT_FOUND) .entity(exception.getMessage()) .build(); }  @Override Response toResponse(ResourceNotFoundException exception); }
ResourceNotFoundExceptionMapper implements ExceptionMapper<ResourceNotFoundException> { @Override public Response toResponse(ResourceNotFoundException exception) { return Response.status(Response.Status.NOT_FOUND) .entity(exception.getMessage()) .build(); }  @Override Response toResponse(ResourceNotFoundException exception);  }