@Test public void delete() throws SQLException { Condition<String, Object> condition = new Condition<String, Object>(); condition.put("boardFileNo", 100); boardFileDao.delete(condition); }
@Test public void read() throws SQLException { Condition<String, Object> condition = new Condition<String, Object>(); condition.put("boardFileNo", 101); log.debug("BoardDAO read Test result : " + boardFileDao.read(condition)); }
@Test public void update() throws SQLException { BoardFileVO file = new BoardFileVO(); file.setBoardFileNo(101); file.setFileNo(97); boardFileDao.update(file); }
@Test public void create() throws SQLException { BoardFileVO file = new BoardFileVO(); // create() 할때 이전 단계에서 넘겨줘야 할 값 fileNo, BoardNum file.setFileNo(318); file.setBoardNum(97); boardFileDao.create(file); }
@Test public void list() throws SQLException { Condition<String, Object> condition = new Condition<String, Object>(); condition.put("boardNo", 318242); // condition.put("type", 2); // boardDao.list(condition); // System.out.println("BoardDAO list Test result : " + boardDao.list(condition)); log.debug("BoardFileDAO list Test result : " + boardFileDao.list(condition)); }