Exemplo n.º 1
0
  @Test
  public void delete() throws SQLException {
    Condition<String, Object> condition = new Condition<String, Object>();

    condition.put("boardFileNo", 100);

    boardFileDao.delete(condition);
  }
Exemplo n.º 2
0
  @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));
  }
Exemplo n.º 3
0
  @Test
  public void update() throws SQLException {
    BoardFileVO file = new BoardFileVO();

    file.setBoardFileNo(101);
    file.setFileNo(97);

    boardFileDao.update(file);
  }
Exemplo n.º 4
0
  @Test
  public void create() throws SQLException {
    BoardFileVO file = new BoardFileVO();

    // create() 할때 이전 단계에서 넘겨줘야 할 값 fileNo, BoardNum
    file.setFileNo(318);
    file.setBoardNum(97);

    boardFileDao.create(file);
  }
Exemplo n.º 5
0
  @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));
  }