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

Method deleteUserTest

ch3/DBConnectionTest2Test.java:45–61  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

43 }
44
45 @Test
46 public void deleteUserTest() throws Exception {
47 deleteAll();
48 int rowCnt = deleteUser("asdf");
49
50 assertTrue(rowCnt==0);
51
52 User user = new User("asdf2", "1234", "abc", "aaaa@aaa.com", new Date(), "fb", new Date());
53 rowCnt = insertUser(user);
54 assertTrue(rowCnt==1);
55
56 rowCnt = deleteUser(user.getId());
57 assertTrue(rowCnt==1);
58
59 assertTrue(selectUser(user.getId())==null);
60
61 }
62
63 // 매개변수로 받은 사용자 정보로 user_info테이블을 update하는 메서드
64 public int updateUser(User user) throws Exception {

Callers

nothing calls this directly

Calls 5

deleteAllMethod · 0.95
deleteUserMethod · 0.95
insertUserMethod · 0.95
getIdMethod · 0.95
selectUserMethod · 0.95

Tested by

no test coverage detected