コード例 #1
0
  @Before
  public void init() throws DataDuplicatedException, DataNotFoundException {
    this.memberService = new MemberServiceImpl();
    memberService.registerMember(testMember1);
    memberService.registerMember(testMember2);

    this.blogService = new BlogServiceImpl();
    blogService.createBlog(testMember1, "first_blog");
    blogService.createBlog(testMember2, "second_blog");
    blogService.createBlog(testMember1, "third_blog");
  }
コード例 #2
0
 @After
 public void end() throws DataNotFoundException {
   blogService.removeBlog(testMember1);
   blogService.removeBlog(testMember2);
   memberService.removeMember(testMember1);
   memberService.removeMember(testMember2);
 }