Package kr.pe.okjsp

Examples of kr.pe.okjsp.ArticleDao


    article.setSubject(subject);
    article.setHomepage(homepage);
    article.setPassword(password);
    article.setCcl_id(ccl_id);
   
    new ArticleDao().write(article);
   
    return article.getBbs();
  }
View Full Code Here


    // login check
    Member member = TestObject.getTestMember();

    // �۾��� 10��, code 2
    long pointBefore =  pointDao.getPoint(member.getSid());
    ArticleDao articleDao = new ArticleDao();
    Article article = new Article();
    Connection conn = new DbCon().getConnection();
    int seq = articleDao.getSeq(conn);
    article.setSeq(seq);
    article.setBbs("perf");
    article.setSubject("subject");
    article.setId(member.getId());
    article.setSid(member.getSid());
    article.setContent("content");
    article.setWriter(member.getId());
    int result = articleDao.write(conn , article);
    assertTrue(1 < result);
    long pointAfter = pointDao.getPoint(member.getSid());
    assertEquals(10, pointAfter - pointBefore);
  }
View Full Code Here

TOP

Related Classes of kr.pe.okjsp.ArticleDao

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.