Example #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());
 }
Example #2
0
 @Test
 public void testFindNamesByPage() {
   List<String> names = studentService.findNamesByPage(1, 5);
   System.out.println(names);
   System.out.println(names.size());
 }
Example #3
0
 @Test
 public void testFindByPage2() {
   List<Map<String, Object>> results = studentService.findCommonByPage(1, 5);
   System.out.println(results);
   System.out.println(results.size());
 }
Example #4
0
 @Test
 public void testFindByPage() {
   List<Student> students = studentService.findByPage(1, 5);
   System.out.println(students);
   System.out.println(students.size());
 }
Example #5
0
 @Test
 public void testFindById() {
   Student student = studentService.findById(9);
   System.out.println(student);
 }
Example #6
0
 @Test
 public void testDelete() {
   studentService.delete(11);
 }
Example #7
0
 @Test
 public void testUpdate() {
   studentService.update(new Student(1, "jerval", new Date()));
 }
Example #8
0
 @Test
 public void testAdd() {
   studentService.add(new Student(null, "jerval", new Date()));
 }