@Test public void testDelete() { CombinedFeed feed = combinedFeed("1"); datastore.put(feed.getId(), feed); Response deleteResp = target.path(feed.getId()).request().delete(); assertEquals(Status.NO_CONTENT.getStatusCode(), deleteResp.getStatus()); }
@DELETE @Path("/{id}") public Response delete(@PathParam("id") String feedId) { Serializable deleted = feedService.delete(feedId); if (deleted != null) { return Response.noContent().build(); } else { throw notFoundException(feedId); } }
CombinedFeedResource { @DELETE @Path("/{id}") public Response delete(@PathParam("id") String feedId) { Serializable deleted = feedService.delete(feedId); if (deleted != null) { return Response.noContent().build(); } else { throw notFoundException(feedId); } } }
CombinedFeedResource { @DELETE @Path("/{id}") public Response delete(@PathParam("id") String feedId) { Serializable deleted = feedService.delete(feedId); if (deleted != null) { return Response.noContent().build(); } else { throw notFoundException(feedId); } }  }
CombinedFeedResource { @DELETE @Path("/{id}") public Response delete(@PathParam("id") String feedId) { Serializable deleted = feedService.delete(feedId); if (deleted != null) { return Response.noContent().build(); } else { throw notFoundException(feedId); } }  @POST @Consumes(MediaType.APPLICATION_JSON) @Produces(MediaType.APPLICATION_JSON) Response create(@Valid CombinedFeed insertedFeed); @DELETE @Path("/{id}") Response delete(@PathParam("id") String feedId); @GET @Path("/{id}/entries") @Produces({MediaType.APPLICATION_JSON, MediaType.APPLICATION_ATOM_XML}) Response getEntries(@PathParam("id") String feedId); }
CombinedFeedResource { @DELETE @Path("/{id}") public Response delete(@PathParam("id") String feedId) { Serializable deleted = feedService.delete(feedId); if (deleted != null) { return Response.noContent().build(); } else { throw notFoundException(feedId); } }  @POST @Consumes(MediaType.APPLICATION_JSON) @Produces(MediaType.APPLICATION_JSON) Response create(@Valid CombinedFeed insertedFeed); @DELETE @Path("/{id}") Response delete(@PathParam("id") String feedId); @GET @Path("/{id}/entries") @Produces({MediaType.APPLICATION_JSON, MediaType.APPLICATION_ATOM_XML}) Response getEntries(@PathParam("id") String feedId);  }