MCPcopy Create free account
hub / github.com/castello/spring_basic / countTest

Method countTest

ch4/BoardDaoImplTest.java:20–31  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls 3

deleteAllMethod · 0.65
countMethod · 0.65
insertMethod · 0.65

Tested by

no test coverage detected