@Test public void testFindOne() throws Exception { log.info("findOne"); long id = anyId(); MvcResult result = mvc.perform(get("/api/languages/{id}.json", id)) .andExpect(status().isOk()) .andExpect(content().contentTypeCompatibleWith(MediaType.APPLICATION_JSON)) .andReturn(); }
@GetMapping("{id}") public Language findOne(@PathVariable("id") long id) { return languageMapper.findOne(id); }
LanguageController { @GetMapping("{id}") public Language findOne(@PathVariable("id") long id) { return languageMapper.findOne(id); } }
LanguageController { @GetMapping("{id}") public Language findOne(@PathVariable("id") long id) { return languageMapper.findOne(id); }  }
LanguageController { @GetMapping("{id}") public Language findOne(@PathVariable("id") long id) { return languageMapper.findOne(id); }  @GetMapping List<Language> findAll(); @PostMapping @ResponseStatus(HttpStatus.NO_CONTENT) void save(@RequestBody Language language); @GetMapping("{id}") Language findOne(@PathVariable("id") long id); @PutMapping("{id}") @ResponseStatus(HttpStatus.NO_CONTENT) void update(@PathVariable("id") long id, @RequestBody Language language); @DeleteMapping("{id}") @ResponseStatus(HttpStatus.NO_CONTENT) void delete(@PathVariable("id") long id); }
LanguageController { @GetMapping("{id}") public Language findOne(@PathVariable("id") long id) { return languageMapper.findOne(id); }  @GetMapping List<Language> findAll(); @PostMapping @ResponseStatus(HttpStatus.NO_CONTENT) void save(@RequestBody Language language); @GetMapping("{id}") Language findOne(@PathVariable("id") long id); @PutMapping("{id}") @ResponseStatus(HttpStatus.NO_CONTENT) void update(@PathVariable("id") long id, @RequestBody Language language); @DeleteMapping("{id}") @ResponseStatus(HttpStatus.NO_CONTENT) void delete(@PathVariable("id") long id);  }