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

Method updateUser

ch4/UserDaoImplTest.java:82–98  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

80 }
81
82 @Test
83 public void updateUser() throws Exception {
84 userDao.deleteAll();
85 User user = new User("asdf", "1234", "abc", "aaa@aaa.com", new Date(cal.getTimeInMillis()), "fb", new Date());
86 int rowCnt = userDao.insertUser(user);
87 assertTrue(rowCnt==1);
88
89 user.setPwd("4321");
90 user.setEmail("bbb@bbb.com");
91 rowCnt = userDao.updateUser(user);
92 assertTrue(rowCnt==1);
93
94 User user2 = userDao.selectUser(user.getId());
95 System.out.println("user = " + user);
96 System.out.println("user2 = " + user2);
97 assertTrue(user.equals(user2));
98 }
99}

Callers

nothing calls this directly

Calls 8

setPwdMethod · 0.95
setEmailMethod · 0.95
getIdMethod · 0.95
equalsMethod · 0.95
deleteAllMethod · 0.65
insertUserMethod · 0.65
updateUserMethod · 0.65
selectUserMethod · 0.65

Tested by

no test coverage detected