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

Method insert

ch4/CommentDaoImplTest.java:34–44  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

32 }
33
34 @Test
35 public void insert() throws Exception {
36 commentDao.deleteAll(1);
37 CommentDto commentDto = new CommentDto(1, 0, "comment", "asdf");
38 assertTrue(commentDao.insert(commentDto)==1);
39 assertTrue(commentDao.count(1)==1);
40
41 commentDto = new CommentDto(1, 0, "comment", "asdf");
42 assertTrue(commentDao.insert(commentDto)==1);
43 assertTrue(commentDao.count(1)==2);
44 }
45
46 @Test
47 public void selectAll() throws Exception {

Callers

nothing calls this directly

Calls 3

deleteAllMethod · 0.65
insertMethod · 0.65
countMethod · 0.65

Tested by

no test coverage detected