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

Method selectUser

ch4/UserDaoImplTest.java:67–80  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

65 }
66
67 @Test
68 public void selectUser() throws Exception {
69 userDao.deleteAll();
70 assertTrue(userDao.count()==0);
71
72 User user = new User("asdf", "1234", "abc", "aaa@aaa.com", new Date(cal.getTimeInMillis()), "fb", new Date());
73 assertTrue(userDao.insertUser(user)==1);
74
75 User user2 = userDao.selectUser(user.getId());
76 assertTrue(user.equals(user2));
77
78 user2 = userDao.selectUser("aaaaaaa");
79 assertTrue(user2==null);
80 }
81
82 @Test
83 public void updateUser() throws Exception {

Callers

nothing calls this directly

Calls 6

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

Tested by

no test coverage detected