@Test public void deleteDomain() throws Exception { domainRepository.save(domain); restDomainMockMvc.perform(delete("/app/rest/domains/{id}", domain.getId()) .accept(TestUtil.APPLICATION_JSON_UTF8)) .andExpect(status().isOk()); List<Domain> domains = domainRepository.findAll(); assertThat(domains).hasSize(0); }
@RequestMapping(value = "/rest/domains/{id}", method = RequestMethod.DELETE, produces = MediaType.APPLICATION_JSON_VALUE) @Timed public void delete(@PathVariable String id) { log.debug("REST request to delete Domain : {}", id); domainRepository.delete(id); }
DomainResource { @RequestMapping(value = "/rest/domains/{id}", method = RequestMethod.DELETE, produces = MediaType.APPLICATION_JSON_VALUE) @Timed public void delete(@PathVariable String id) { log.debug("REST request to delete Domain : {}", id); domainRepository.delete(id); } }
DomainResource { @RequestMapping(value = "/rest/domains/{id}", method = RequestMethod.DELETE, produces = MediaType.APPLICATION_JSON_VALUE) @Timed public void delete(@PathVariable String id) { log.debug("REST request to delete Domain : {}", id); domainRepository.delete(id); }  }
DomainResource { @RequestMapping(value = "/rest/domains/{id}", method = RequestMethod.DELETE, produces = MediaType.APPLICATION_JSON_VALUE) @Timed public void delete(@PathVariable String id) { log.debug("REST request to delete Domain : {}", id); domainRepository.delete(id); }  @RequestMapping(value = "/rest/domains", method = RequestMethod.POST, produces = MediaType.APPLICATION_JSON_VALUE) @Timed void create(@RequestBody Domain domain); @RequestMapping(value = "/rest/domains", method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE) @Timed List<Domain> getAll(); @RequestMapping(value = "/rest/domains/{id}", method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE) @Timed ResponseEntity<Domain> get(@PathVariable String id); @RequestMapping(value = "/rest/domains/{id}", method = RequestMethod.DELETE, produces = MediaType.APPLICATION_JSON_VALUE) @Timed void delete(@PathVariable String id); }
DomainResource { @RequestMapping(value = "/rest/domains/{id}", method = RequestMethod.DELETE, produces = MediaType.APPLICATION_JSON_VALUE) @Timed public void delete(@PathVariable String id) { log.debug("REST request to delete Domain : {}", id); domainRepository.delete(id); }  @RequestMapping(value = "/rest/domains", method = RequestMethod.POST, produces = MediaType.APPLICATION_JSON_VALUE) @Timed void create(@RequestBody Domain domain); @RequestMapping(value = "/rest/domains", method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE) @Timed List<Domain> getAll(); @RequestMapping(value = "/rest/domains/{id}", method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE) @Timed ResponseEntity<Domain> get(@PathVariable String id); @RequestMapping(value = "/rest/domains/{id}", method = RequestMethod.DELETE, produces = MediaType.APPLICATION_JSON_VALUE) @Timed void delete(@PathVariable String id);  }