public static void getBoardVoTest() { BoardDao dao = new BoardDao(); BoardVo boardVo = null; boardVo = dao.getVo(6L); System.out.println(boardVo); }
public static void getListTest() { BoardDao dao = new BoardDao(); List<BoardVo> list = dao.getList(); for (BoardVo vo : list) { System.out.println(vo); } }
public static void getWTFListTest() { BoardDao boardDao = new BoardDao(); List<BoardVo> list = boardDao.getListForViewListPageIDontKnowWhatToNameTheMethod(); for (BoardVo vo : list) { System.out.println("! : " + vo.toString()); } }
public static void updateTest() { BoardVo vo = new BoardVo(); vo.setTitle("up Title"); vo.setContent("up Content"); vo.setViewCnt(1L); BoardDao dao = new BoardDao(); dao.update(2L, vo); }
public static void insertTest() { BoardDao dao = new BoardDao(); BoardVo vo = new BoardVo(); vo.setTitle("TITLE!"); vo.setContent("CONTENT!"); vo.setMemberNo(Long.parseLong("2")); vo.setMemberName("MEMBER_NAME!"); dao.insert(vo); }
public static void deleteTest() { BoardDao dao = new BoardDao(); dao.delete(16L); }