SpecOfferController extends BaseController implements CrudController<SpecOfferResource, SpecOfferResource> { @Override @ResponseStatus(HttpStatus.NO_CONTENT) @RequestMapping(value = Request.ID, method = RequestMethod.DELETE) @ApiOperation(value = "Remove Specoffer", position = 4) public MessageResource removeResource(@PathVariable("id") final Long id) { LOG.info("Removing specoffer with id: {}", id); facade.removeResource(id); return new MessageResource(MessageType.INFO, "SpecOffer removed"); }  @Override @ResponseStatus(HttpStatus.CREATED) @RequestMapping(method = RequestMethod.POST) @ApiOperation(value = "Create Specoffer", position = 1) SpecOfferResource createResource(@Valid @RequestBody final SpecOfferResource specOfferResource); @Override @ResponseStatus(HttpStatus.OK) @RequestMapping(value = Request.ID, method = RequestMethod.PUT) @ApiOperation(value = "Update SpecOffer", position = 2) MessageResource updateResource(@PathVariable("id") final Long id,
			@Valid @RequestBody final SpecOfferResource specOfferResource); @Override @ResponseStatus(HttpStatus.OK) @RequestMapping(value = Request.ID, method = RequestMethod.GET) @ApiOperation(value = "Get's SpecOffer", position = 3) SpecOfferResource getResource(@PathVariable("id") final Long id); @Override @ResponseStatus(HttpStatus.NO_CONTENT) @RequestMapping(value = Request.ID, method = RequestMethod.DELETE) @ApiOperation(value = "Remove Specoffer", position = 4) MessageResource removeResource(@PathVariable("id") final Long id); @Override @ResponseStatus(HttpStatus.OK) @RequestMapping(method = RequestMethod.GET) @ApiOperation(value = "Get's All SpecOffers", position = 5) PagedResultResource<SpecOfferResource> getPagedResource(final PagedRequest<SpecOfferResource> request);  }
@Test public void testDeleteSpecOffer() throws Exception { Long id = 1L; mockMvc.perform(delete("/specoffers/{id}", id)) .andExpect(status().is(204)); verify(facade).removeResource(id); }