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

Method selectTest

ch4/BoardDaoImplTest.java:110–122  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls 8

setBnoMethod · 0.95
equalsMethod · 0.95
deleteAllMethod · 0.65
countMethod · 0.65
insertMethod · 0.65
selectAllMethod · 0.65
selectMethod · 0.65
getBnoMethod · 0.45

Tested by

no test coverage detected