@Test public void shouldRedirectToHomePage() { when(settingService.getConfigurationStringValue(ConfigurationSettingKey.LOGIN_SUCCESS_DEFAULT_LANDING_PAGE)).thenReturn("/public/site/index.html#/home"); String homePageURl = homeController.homeDefault(); assertEquals("redirect:/public/site/index.html#/home", homePageURl); }
@RequestMapping(value = "", method = GET) public String homeDefault() { return homePageUrl(); }
HomeController extends BaseController { @RequestMapping(value = "", method = GET) public String homeDefault() { return homePageUrl(); } }
HomeController extends BaseController { @RequestMapping(value = "", method = GET) public String homeDefault() { return homePageUrl(); }  }
HomeController extends BaseController { @RequestMapping(value = "", method = GET) public String homeDefault() { return homePageUrl(); }  @RequestMapping(value = "", method = GET) String homeDefault(); @RequestMapping(value = "/locales", method = GET) ResponseEntity<OpenLmisResponse> getLocales(HttpServletRequest request); @RequestMapping(value = "/changeLocale", method = PUT, headers = ACCEPT_JSON) void changeLocale(HttpServletRequest request); }
HomeController extends BaseController { @RequestMapping(value = "", method = GET) public String homeDefault() { return homePageUrl(); }  @RequestMapping(value = "", method = GET) String homeDefault(); @RequestMapping(value = "/locales", method = GET) ResponseEntity<OpenLmisResponse> getLocales(HttpServletRequest request); @RequestMapping(value = "/changeLocale", method = PUT, headers = ACCEPT_JSON) void changeLocale(HttpServletRequest request);  }