@Test public void testRemoveExperiment() { delete(EXPERIMENT_ENDPOINT, EXPERIMENT_BAD) .assertStatus(Status.NOT_FOUND); assertNotNull(EXPERIMENTS.get(EXPERIMENT_1)); delete(EXPERIMENT_ENDPOINT, EXPERIMENT_1) .assertStatus(Status.NO_CONTENT); assertNull(EXPERIMENTS.get(EXPERIMENT_1)); }
@DELETE @Path("/{experimentName}") public void removeExperiment(@PathParam("experimentName") String experimentName) { ensureExists(experiments.get(experimentName)) .delete(); }
ExperimentsResource extends BaseResource { @DELETE @Path("/{experimentName}") public void removeExperiment(@PathParam("experimentName") String experimentName) { ensureExists(experiments.get(experimentName)) .delete(); } }
ExperimentsResource extends BaseResource { @DELETE @Path("/{experimentName}") public void removeExperiment(@PathParam("experimentName") String experimentName) { ensureExists(experiments.get(experimentName)) .delete(); } @Inject  ExperimentsResource(Experiments experiments, Mappers mapper); }
ExperimentsResource extends BaseResource { @DELETE @Path("/{experimentName}") public void removeExperiment(@PathParam("experimentName") String experimentName) { ensureExists(experiments.get(experimentName)) .delete(); } @Inject  ExperimentsResource(Experiments experiments, Mappers mapper); @GET Iterable<ExperimentDto> getExperiments(@QueryParam("filter") String filterValue,
                                                  @QueryParam("offset") Integer offset,
                                                  @QueryParam("limit") Integer limit,
                                                  @QueryParam("sort") String sort); @PUT Response addExperiment(@Valid CreateExperimentRequest request); @POST @Path("/{experimentName}") void updateExperiment(@PathParam("experimentName") String experimentName,
                                 @Valid UpdateExperimentRequest request); @GET @Path("/{experimentName}") ExperimentDto getExperiment(@PathParam("experimentName") String experimentName); @DELETE @Path("/{experimentName}") void removeExperiment(@PathParam("experimentName") String experimentName); }
ExperimentsResource extends BaseResource { @DELETE @Path("/{experimentName}") public void removeExperiment(@PathParam("experimentName") String experimentName) { ensureExists(experiments.get(experimentName)) .delete(); } @Inject  ExperimentsResource(Experiments experiments, Mappers mapper); @GET Iterable<ExperimentDto> getExperiments(@QueryParam("filter") String filterValue,
                                                  @QueryParam("offset") Integer offset,
                                                  @QueryParam("limit") Integer limit,
                                                  @QueryParam("sort") String sort); @PUT Response addExperiment(@Valid CreateExperimentRequest request); @POST @Path("/{experimentName}") void updateExperiment(@PathParam("experimentName") String experimentName,
                                 @Valid UpdateExperimentRequest request); @GET @Path("/{experimentName}") ExperimentDto getExperiment(@PathParam("experimentName") String experimentName); @DELETE @Path("/{experimentName}") void removeExperiment(@PathParam("experimentName") String experimentName);  }