@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)); }
@Test public void testDeleteUserById() { User user = userDao.findUserById(1); System.out.println(user.getFirstNameUser()); Assert.assertTrue(userDao.deleteUserById(1)); }
@Test public void testFindUserById() { User user = userDao.findUserById(1); Assert.assertEquals("Ali", user.getFirstNameUser()); }