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

Method select

ch4/CommentDaoImplTest.java:64–76  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

62 }
63
64 @Test
65 public void select() throws Exception {
66 commentDao.deleteAll(1);
67 CommentDto commentDto = new CommentDto(1, 0, "comment", "asdf");
68 assertTrue(commentDao.insert(commentDto)==1);
69 assertTrue(commentDao.count(1)==1);
70
71 List<CommentDto> list = commentDao.selectAll(1);
72 String comment = list.get(0).getComment();
73 String commenter = list.get(0).getCommenter();
74 assertTrue(comment.equals(commentDto.getComment()));
75 assertTrue(commenter.equals(commentDto.getCommenter()));
76 }
77
78 @Test
79 public void update() throws Exception {

Callers

nothing calls this directly

Calls 7

getCommentMethod · 0.95
getCommenterMethod · 0.95
deleteAllMethod · 0.65
insertMethod · 0.65
countMethod · 0.65
selectAllMethod · 0.65
equalsMethod · 0.45

Tested by

no test coverage detected