RecentRankController { @GetMapping("recentrank") @SuppressWarnings("AssignmentToMethodParameter") public String recentRank(Model model, @RequestParam(value = "count", defaultValue = "10000") int count) { count = Math.max(0, Math.min(10000, count)); List<User> recentRank = userMapper.recentrank(count); model.addAttribute("count", count); model.addAttribute("recentrank", recentRank); return "users/recent"; }  @GetMapping("recentrank") @SuppressWarnings("AssignmentToMethodParameter") String recentRank(Model model,
            @RequestParam(value = "count", defaultValue = "10000") int count);  }
@Test public void testRecentRank() throws Exception { log.info("recentRank"); int count = 200; MvcResult result = mvc.perform(get("/recentrank").param("count", Integer.toString(count))) .andExpect(status().isOk()) .andExpect(content().contentTypeCompatibleWith(MediaType.TEXT_HTML)) .andReturn(); }