MarkScaleController extends BaseController implements CrudController<MarkScaleResource, MarkScaleResource> { @Override @ResponseStatus(HttpStatus.NO_CONTENT) @RequestMapping(value = "/{id}", method = RequestMethod.DELETE) @ApiOperation(value = "Delete MarkScale", position = 4) public MessageResource removeResource(@PathVariable("id") final Long id) { LOG.info("Removing markScale with id: {}", id); facade.removeResource(id); return new MessageResource(MessageType.INFO, "MarkScale removed"); }  @Override @ResponseStatus(HttpStatus.CREATED) @RequestMapping(method = RequestMethod.POST) @ApiOperation(value = "Create MarkScale", position = 1) MarkScaleResource createResource(@Valid @RequestBody final MarkScaleResource resource); @Override @ResponseStatus(HttpStatus.OK) @RequestMapping(value = "/{id}", method = RequestMethod.PUT) @ApiOperation(value = "Update MarkScale", position = 2) MessageResource updateResource(@PathVariable("id") final Long id,
			@Valid @RequestBody final MarkScaleResource resource); @Override @ResponseStatus(HttpStatus.OK) @RequestMapping(value = "/{id}", method = RequestMethod.GET) @ApiOperation(value = "Get MarkScale by id", position = 3) MarkScaleResource getResource(@PathVariable("id") final Long id); @Override @ResponseStatus(HttpStatus.NO_CONTENT) @RequestMapping(value = "/{id}", method = RequestMethod.DELETE) @ApiOperation(value = "Delete MarkScale", position = 4) MessageResource removeResource(@PathVariable("id") final Long id); @Override @ResponseStatus(HttpStatus.OK) @RequestMapping(method = RequestMethod.GET) @ApiOperation(value = "Get MarkScales", position = 5) PagedResultResource<MarkScaleResource> getPagedResource(final PagedRequest<MarkScaleResource> request);  }
@Test public void testDeleteMarkScale() throws Exception { Long id = 1L; mockMvc.perform(delete("/marks/scales/{id}", id)) .andExpect(status().is(204)); verify(facade).removeResource(id); }