()
| 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 { |