Esempio n. 1
0
 @Test
 public void testUpdateUser() {
   User user = userDao.findUserById(2);
   System.out.println("old one :" + user.getFirstNameUser());
   user.setFirstNameUser("new look");
   System.out.println("new one :" + user.getFirstNameUser());
   Assert.assertTrue(userDao.updateUser(user));
 }
Esempio n. 2
0
 @Test
 public void testDeleteUserById() {
   User user = userDao.findUserById(1);
   System.out.println(user.getFirstNameUser());
   Assert.assertTrue(userDao.deleteUserById(1));
 }
Esempio n. 3
0
 @Test
 public void testFindUserById() {
   User user = userDao.findUserById(1);
   Assert.assertEquals("Ali", user.getFirstNameUser());
 }