()
| 18 | private BoardDao boardDao; |
| 19 | |
| 20 | @Test |
| 21 | public void countTest() throws Exception { |
| 22 | boardDao.deleteAll(); |
| 23 | assertTrue(boardDao.count()==0); |
| 24 | |
| 25 | BoardDto boardDto = new BoardDto("no title", "no content", "asdf"); |
| 26 | assertTrue(boardDao.insert(boardDto)==1); |
| 27 | assertTrue(boardDao.count()==1); |
| 28 | |
| 29 | assertTrue(boardDao.insert(boardDto)==1); |
| 30 | assertTrue(boardDao.count()==2); |
| 31 | } |
| 32 | |
| 33 | @Test |
| 34 | public void deleteAllTest() throws Exception { |