Пример #1
0
 @Test
 public void testFindByPage3() {
   List<Object> results =
       studentService.findBySql("com.mybatis.app.mapper.StudentMapper.findById", 5);
   System.out.println(results);
   System.out.println(results.size());
 }
Пример #2
0
 @Test
 public void testFindNamesByPage() {
   List<String> names = studentService.findNamesByPage(1, 5);
   System.out.println(names);
   System.out.println(names.size());
 }
Пример #3
0
 @Test
 public void testFindByPage2() {
   List<Map<String, Object>> results = studentService.findCommonByPage(1, 5);
   System.out.println(results);
   System.out.println(results.size());
 }
Пример #4
0
 @Test
 public void testFindByPage() {
   List<Student> students = studentService.findByPage(1, 5);
   System.out.println(students);
   System.out.println(students.size());
 }
Пример #5
0
 @Test
 public void testFindById() {
   Student student = studentService.findById(9);
   System.out.println(student);
 }
Пример #6
0
 @Test
 public void testDelete() {
   studentService.delete(11);
 }
Пример #7
0
 @Test
 public void testUpdate() {
   studentService.update(new Student(1, "jerval", new Date()));
 }
Пример #8
0
 @Test
 public void testAdd() {
   studentService.add(new Student(null, "jerval", new Date()));
 }