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