MCPcopy Index your code
hub / github.com/castello/spring_basic / deleteUser

Method deleteUser

ch4/UserDaoImplTest.java:49–65  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

47 }
48
49 @Test
50 public void deleteUser() throws Exception {
51 userDao.deleteAll();
52 assertTrue(userDao.count()==0);
53
54 User user = new User("asdf", "1234", "abc", "aaa@aaa.com", new Date(cal.getTimeInMillis()), "fb", new Date());
55 assertTrue(userDao.insertUser(user)==1);
56 assertTrue(userDao.count()==1);
57
58 User user2 = userDao.selectUser(user.getId());
59 assertTrue(user.equals(user2));
60 assertTrue(userDao.deleteUser(user.getId())==1);
61
62 user = userDao.selectUser("asdf");
63 assertTrue(user==null);
64 assertTrue(userDao.count()==0);
65 }
66
67 @Test
68 public void selectUser() throws Exception {

Callers

nothing calls this directly

Calls 7

getIdMethod · 0.95
equalsMethod · 0.95
deleteAllMethod · 0.65
countMethod · 0.65
insertUserMethod · 0.65
selectUserMethod · 0.65
deleteUserMethod · 0.65

Tested by

no test coverage detected