Class MailHelper


  • @Deprecated
    public class MailHelper
    extends Object
    Deprecated.
    Client side utility class to create mail imports for testing.
    • Field Detail

      • log

        protected final transient org.slf4j.Logger log
        Deprecated.
    • Constructor Detail

      • MailHelper

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

      • importMail

        public void importMail​(String filePath,
                               String spaceKey)
        Deprecated.
        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)
        Deprecated.
      • importMailAndAssertNoRunningTask

        public void importMailAndAssertNoRunningTask​(String filePath,
                                                     String spaceKey)
        Deprecated.
        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