@Test public void testFindOne() throws Exception { log.info("findOne"); String id = "en"; boolean support = false; MvcResult result = mvc.perform(get("/api/locales/{id}.json", id) .param("support", Boolean.toString(support))) .andExpect(status().isOk()) .andExpect(content().contentTypeCompatibleWith(MediaType.APPLICATION_JSON)) .andReturn(); }
@GetMapping("{id}") public DomainLocale findOne(@PathVariable("id") String name, @RequestParam(value = "support", required = false, defaultValue = "false") boolean support) { return localeService.toDomainLocale(name, support); }
LocaleController { @GetMapping("{id}") public DomainLocale findOne(@PathVariable("id") String name, @RequestParam(value = "support", required = false, defaultValue = "false") boolean support) { return localeService.toDomainLocale(name, support); } }
LocaleController { @GetMapping("{id}") public DomainLocale findOne(@PathVariable("id") String name, @RequestParam(value = "support", required = false, defaultValue = "false") boolean support) { return localeService.toDomainLocale(name, support); }  }
LocaleController { @GetMapping("{id}") public DomainLocale findOne(@PathVariable("id") String name, @RequestParam(value = "support", required = false, defaultValue = "false") boolean support) { return localeService.toDomainLocale(name, support); }  @GetMapping("current") DomainLocale current(@Nullable Locale requestLocale); @GetMapping("{id}") DomainLocale findOne(@PathVariable("id") String name,
            @RequestParam(value = "support", required = false, defaultValue = "false") boolean support); @GetMapping List<DomainLocale> findAll(); @GetMapping(params = "all") List<DomainLocale> supported(@RequestParam("all") boolean all); }
LocaleController { @GetMapping("{id}") public DomainLocale findOne(@PathVariable("id") String name, @RequestParam(value = "support", required = false, defaultValue = "false") boolean support) { return localeService.toDomainLocale(name, support); }  @GetMapping("current") DomainLocale current(@Nullable Locale requestLocale); @GetMapping("{id}") DomainLocale findOne(@PathVariable("id") String name,
            @RequestParam(value = "support", required = false, defaultValue = "false") boolean support); @GetMapping List<DomainLocale> findAll(); @GetMapping(params = "all") List<DomainLocale> supported(@RequestParam("all") boolean all);  }