StudentService { public Page<Student> findByPage(int pageNo, int pageSize) { PageHelper.startPage(pageNo, pageSize); return studentMapper.findByPage(); }  Page<Student> findByPage(int pageNo, int pageSize);  }
@Test public void testFindByPage() { Page<Student> students = studentService.findByPage(1, 2); assertEquals(students.getTotal(),5); assertEquals(students.getPages(),3); log.debug(students.toString()); }