Пример #1
0
 @Test
 public void testPage() {
   List<User> userList = userService.findByPage(0, 10);
   for (User user : userList) {
     System.out.println(user.getName() + "--" + user.getPassword());
   }
 }
Пример #2
0
 @Test
 public void testSave() {
   User user = new User();
   user.setName("zhang");
   user.setPassword("123456");
   user.setTel("13726942432");
   user.setTime(new Date());
   Boolean flag = userService.save(user);
   System.out.println(flag);
 }
Пример #3
0
 @Test
 public void testUpdate() {
   User user = userService.findById(1);
   user.setName("Li");
   userService.update(user);
 }