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); }