CommentsController extends BaseController { @RequestMapping(value = {""}, method = RequestMethod.GET) public @ResponseBody PageOut<CommentsOut> get(int page, Integer articleId) { return commentsService.listComments(page, articleId); }  @RequestMapping(value = {""}, method = RequestMethod.POST) @ResponseBody ResponseEntity post(@RequestBody Comment comments); @RequestMapping(value = {""}, method = RequestMethod.GET) @ResponseBody PageOut<CommentsOut> get(int page, Integer articleId);  }
@Test public void testGet() throws Exception { mockMvc.perform(get("/api/comments").param("page", "1").param("articleId", "1")).andExpect(status().isOk()); }