()
| 108 | } |
| 109 | |
| 110 | @Test |
| 111 | public void selectTest() throws Exception { |
| 112 | boardDao.deleteAll(); |
| 113 | assertTrue(boardDao.count()==0); |
| 114 | |
| 115 | BoardDto boardDto = new BoardDto("no title", "no content", "asdf"); |
| 116 | assertTrue(boardDao.insert(boardDto)==1); |
| 117 | |
| 118 | Integer bno = boardDao.selectAll().get(0).getBno(); |
| 119 | boardDto.setBno(bno); |
| 120 | BoardDto boardDto2 = boardDao.select(bno); |
| 121 | assertTrue(boardDto.equals(boardDto2)); |
| 122 | } |
| 123 | |
| 124 | @Test |
| 125 | public void selectPageTest() throws Exception { |