@Test public void clientAppPart() throws Exception { Account account = accountTourist("foo"); String token = prepareAccessToken(account); ClientApp app1 = clientApp(account, "app1"); when(clientAppService.listGrantedApps(isA(AccountAccessToken.class))).thenReturn(asList(app1)); mockMvc.perform(get("/account/client-app.part").header(AccountAccessToken.HEADER_KEY, token)) .andExpect(view().name("account/client-app.part")) .andExpect(containsText("app1")); }
@RequestMapping("/client-app.part") public ModelAndView clientAppPart(AccountAccessToken accountAccessToken) { List<ClientApp> clientApps = clientAppService.listGrantedApps(accountAccessToken); return new ModelAndView("account/client-app.part").addObject("clientApps", clientApps); }
AccountController { @RequestMapping("/client-app.part") public ModelAndView clientAppPart(AccountAccessToken accountAccessToken) { List<ClientApp> clientApps = clientAppService.listGrantedApps(accountAccessToken); return new ModelAndView("account/client-app.part").addObject("clientApps", clientApps); } }
AccountController { @RequestMapping("/client-app.part") public ModelAndView clientAppPart(AccountAccessToken accountAccessToken) { List<ClientApp> clientApps = clientAppService.listGrantedApps(accountAccessToken); return new ModelAndView("account/client-app.part").addObject("clientApps", clientApps); }  }
AccountController { @RequestMapping("/client-app.part") public ModelAndView clientAppPart(AccountAccessToken accountAccessToken) { List<ClientApp> clientApps = clientAppService.listGrantedApps(accountAccessToken); return new ModelAndView("account/client-app.part").addObject("clientApps", clientApps); }  @RequestMapping("/sign-up") ModelAndView signUp(); @RequestMapping("/sign-in") String signIn(); @RequestMapping("/forget-password") String forgetPassword(); @RequestMapping("/reset-password") ModelAndView resetPassword(@RequestParam("key") String key); @RequestMapping("/settings") String settings(); @RequestMapping("/settings.part") ModelAndView settingsPart(AccountAccessToken accountAccessToken); @RequestMapping("/client-app") String clientApp(); @RequestMapping("/client-app.part") ModelAndView clientAppPart(AccountAccessToken accountAccessToken); @RequestMapping("/news-feed") String newsFeed(); @RequestMapping("/up-voted") String upVoted(); @RequestMapping("/news-feed.part") ModelAndView newsFeedPart(AccountAccessToken accountAccessToken,
      @RequestParam(value = "start", required = false) FlakeId startAssetId); @RequestMapping("/up-voted.part") ModelAndView upVotedPart(AccountAccessToken accountAccessToken,
      @RequestParam(value = "start", required = false) FlakeId startArticleId); @RequestMapping("/activation") ModelAndView activation(@RequestParam("key") String key, HttpServletResponse response); }
AccountController { @RequestMapping("/client-app.part") public ModelAndView clientAppPart(AccountAccessToken accountAccessToken) { List<ClientApp> clientApps = clientAppService.listGrantedApps(accountAccessToken); return new ModelAndView("account/client-app.part").addObject("clientApps", clientApps); }  @RequestMapping("/sign-up") ModelAndView signUp(); @RequestMapping("/sign-in") String signIn(); @RequestMapping("/forget-password") String forgetPassword(); @RequestMapping("/reset-password") ModelAndView resetPassword(@RequestParam("key") String key); @RequestMapping("/settings") String settings(); @RequestMapping("/settings.part") ModelAndView settingsPart(AccountAccessToken accountAccessToken); @RequestMapping("/client-app") String clientApp(); @RequestMapping("/client-app.part") ModelAndView clientAppPart(AccountAccessToken accountAccessToken); @RequestMapping("/news-feed") String newsFeed(); @RequestMapping("/up-voted") String upVoted(); @RequestMapping("/news-feed.part") ModelAndView newsFeedPart(AccountAccessToken accountAccessToken,
      @RequestParam(value = "start", required = false) FlakeId startAssetId); @RequestMapping("/up-voted.part") ModelAndView upVotedPart(AccountAccessToken accountAccessToken,
      @RequestParam(value = "start", required = false) FlakeId startArticleId); @RequestMapping("/activation") ModelAndView activation(@RequestParam("key") String key, HttpServletResponse response);  }