com.atlassian.confluence.it
Class AttachmentsTester

java.lang.Object
  extended by com.atlassian.confluence.it.AttachmentsTester

public class AttachmentsTester
extends java.lang.Object


Constructor Summary
AttachmentsTester(net.sourceforge.jwebunit.junit.WebTester webTester)
           
 
Method Summary
 void attachFile(java.io.File attachment)
           
 void attachFile(java.io.File attachment, java.lang.String comment)
          Click the attach file link, attach a given file with a given comment and submit the attachment form.
 void attachFileWithName(java.lang.String fileName, java.io.InputStream in, java.lang.String comment)
          Click the attach file link, attach a given file with a given comment and submit the attachment form.
 void createMail(java.io.File mail, java.lang.String spaceKey, java.lang.String spaceTitle)
          Deprecated. since 5.2 Use MailArchivingHelper.importMail(java.io.File, String, String)
static java.io.File generateAttachment(java.lang.String filename, java.lang.String text)
           
static java.io.File generateLargeAttachment(java.lang.String filename, long bytes)
           
 void importMail(java.lang.String filePath, java.lang.String spaceKey, java.lang.String spaceTitle)
          Deprecated. since 5.2 Use MailArchivingHelper.importMail(String, String, String)
 void importMailAndAssertNoRunningTask(java.lang.String filePath, java.lang.String spaceKey, java.lang.String spaceTitle)
          Deprecated. since 5.2 Use MailArchivingHelper.importMailAndAssertNoRunningTask(String, String, String)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AttachmentsTester

public AttachmentsTester(net.sourceforge.jwebunit.junit.WebTester webTester)
Method Detail

generateLargeAttachment

public static java.io.File generateLargeAttachment(java.lang.String filename,
                                                   long bytes)

generateAttachment

public static java.io.File generateAttachment(java.lang.String filename,
                                              java.lang.String text)

attachFile

public void attachFile(java.io.File attachment)

attachFile

public void attachFile(java.io.File attachment,
                       @Nullable
                       java.lang.String comment)
Click the attach file link, attach a given file with a given comment and submit the attachment form.

Parameters:
attachment - the file attachment
comment - the comment for the attachment

attachFileWithName

public void attachFileWithName(java.lang.String fileName,
                               java.io.InputStream in,
                               java.lang.String comment)
Click the attach file link, attach a given file with a given comment and submit the attachment form.

Parameters:
fileName - the filename to attach
in - the stream to read the file
comment - a comment for this attachment

createMail

@Deprecated
public void createMail(java.io.File mail,
                                  java.lang.String spaceKey,
                                  java.lang.String spaceTitle)
Deprecated. since 5.2 Use MailArchivingHelper.importMail(java.io.File, String, String)


importMail

@Deprecated
public void importMail(java.lang.String filePath,
                                  java.lang.String spaceKey,
                                  java.lang.String spaceTitle)
Deprecated. since 5.2 Use MailArchivingHelper.importMail(String, String, String)


importMailAndAssertNoRunningTask

@Deprecated
public void importMailAndAssertNoRunningTask(java.lang.String filePath,
                                                        java.lang.String spaceKey,
                                                        java.lang.String spaceTitle)
Deprecated. since 5.2 Use MailArchivingHelper.importMailAndAssertNoRunningTask(String, String, String)



Copyright © 2003-2014 Atlassian. All Rights Reserved.