Package kr.pe.okjsp.member

Source Code of kr.pe.okjsp.member.TestObject

package kr.pe.okjsp.member;

import kr.pe.okjsp.Article;

public class TestObject {
  public static Member getTestMember() {
    Member member = new Member();
    member.setSid(3582);
    member.setId("kenu1");
    return member;
  }

  public static Article getTestArticle(Member member) {
    Article article = new Article();
    article.setBbs("recruit");
    article.setSubject("subject");
    article.setId(String.valueOf(member.getSid()));
    article.setSid(member.getSid());
    article.setContent("content");
    article.setWriter(member.getId());
    return article;
  }

  public static void deleteTestData() {
    Member member = TestObject.getTestMember();
    new PointDao().deletePoint(member.getSid());
  }

}
TOP

Related Classes of kr.pe.okjsp.member.TestObject

TOP
Copyright © 2018 www.massapi.com. 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.