()
| 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 { |
nothing calls this directly
no test coverage detected