com.atlassian.confluence.it.mail
Class MailHelper

java.lang.Object
  extended by com.atlassian.confluence.it.mail.MailHelper

public class MailHelper
extends Object

Client side utility class to create mail imports for testing.


Field Summary
protected  org.slf4j.Logger log
           
 
Constructor Summary
MailHelper(ConfluenceRpc rpc, net.sourceforge.jwebunit.junit.WebTester tester)
           
 
Method Summary
 void createMail(File mail, String spaceKey)
           
 void importMail(String filePath, String spaceKey)
          Creates mails in the specified space.
 void importMailAndAssertNoRunningTask(String filePath, String spaceKey)
          Creates mails in the specified space and then checks if it successfully moved to the No Long Running Task page.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected final transient org.slf4j.Logger log
Constructor Detail

MailHelper

public MailHelper(ConfluenceRpc rpc,
                  net.sourceforge.jwebunit.junit.WebTester tester)
Method Detail

importMail

public void importMail(String filePath,
                       String spaceKey)
Creates mails in the specified space. Mail import can be done with an Mbox file or single mail. No explicit assertions are made by this method.

Parameters:
filePath - the file path to the mailbox
spaceKey - the space key to import into

createMail

public void createMail(File mail,
                       String spaceKey)

importMailAndAssertNoRunningTask

public void importMailAndAssertNoRunningTask(String filePath,
                                             String spaceKey)
Creates mails in the specified space and then checks if it successfully moved to the No Long Running Task page. Mail import can be done with an Mbox file or single mail.

Parameters:
filePath - the file path to the mailbox
spaceKey - the space key to import into


Copyright © 2003-2012 Atlassian. All Rights Reserved.