@Test public void testInit() throws Exception { mockMvc .perform(get(SecurityUiController.URI)) .andExpect(status().isOk()) .andExpect(view().name(SecurityUiController.VIEW_TEMPLATE)) .andExpect(model().attribute("baseUrl", MENU_PATH_SECURITY_UI)); }
@GetMapping("/**") public String init(Model model) { model.addAttribute(KEY_BASE_URL, menuReaderService.findMenuItemPath(ID)); return VIEW_TEMPLATE; }
SecurityUiController extends PluginController { @GetMapping("/**") public String init(Model model) { model.addAttribute(KEY_BASE_URL, menuReaderService.findMenuItemPath(ID)); return VIEW_TEMPLATE; } }
SecurityUiController extends PluginController { @GetMapping("/**") public String init(Model model) { model.addAttribute(KEY_BASE_URL, menuReaderService.findMenuItemPath(ID)); return VIEW_TEMPLATE; } SecurityUiController(MenuReaderService menuReaderService); }
SecurityUiController extends PluginController { @GetMapping("/**") public String init(Model model) { model.addAttribute(KEY_BASE_URL, menuReaderService.findMenuItemPath(ID)); return VIEW_TEMPLATE; } SecurityUiController(MenuReaderService menuReaderService); @GetMapping("/**") String init(Model model); }
SecurityUiController extends PluginController { @GetMapping("/**") public String init(Model model) { model.addAttribute(KEY_BASE_URL, menuReaderService.findMenuItemPath(ID)); return VIEW_TEMPLATE; } SecurityUiController(MenuReaderService menuReaderService); @GetMapping("/**") String init(Model model); static final String ID; static final String URI; }