|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.confluence.it.AttachmentsTester
public class AttachmentsTester
Constructor Summary | |
---|---|
AttachmentsTester(AdminConsole adminConsole,
net.sourceforge.jwebunit.junit.WebTester webTester)
|
Method Summary | |
---|---|
void |
attachFile(File attachment)
|
void |
attachFile(File attachment,
String comment)
Click the attach file link, attach a given file with a given comment and submit the attachment form. |
void |
attachFileWithName(String fileName,
InputStream in,
String comment)
Click the attach file link, attach a given file with a given comment and submit the attachment form. |
void |
createMail(File mail,
String spaceKey,
String spaceTitle)
|
static File |
generateAttachment(String filename,
String text)
|
static File |
generateLargeAttachment(String filename,
long bytes)
|
void |
importMail(String filePath,
String spaceKey,
String spaceTitle)
Creates mails in the specified space. |
void |
importMailAndAssertNoRunningTask(String filePath,
String spaceKey,
String spaceTitle)
Creates mails in the specified space and then checks if it successfully moved to the No Long Running Task page. |
void |
setAttachmentMaxUploadSize(long max)
|
void |
setMaxAttachmentsInUI(long max)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AttachmentsTester(AdminConsole adminConsole, net.sourceforge.jwebunit.junit.WebTester webTester)
Method Detail |
---|
public static File generateLargeAttachment(String filename, long bytes)
public static File generateAttachment(String filename, String text)
public void attachFile(File attachment)
public void attachFile(File attachment, @Nullable String comment)
attachment
- the file attachmentcomment
- the comment for the attachmentpublic void attachFileWithName(String fileName, InputStream in, String comment)
fileName
- the filename to attachin
- the stream to read the filecomment
- a comment for this attachmentpublic void createMail(File mail, String spaceKey, String spaceTitle)
public void setAttachmentMaxUploadSize(long max)
public void setMaxAttachmentsInUI(long max)
public void importMail(String filePath, String spaceKey, String spaceTitle)
filePath
- the file path to the mailboxspaceKey
- the space key to import intospaceTitle
- public void importMailAndAssertNoRunningTask(String filePath, String spaceKey, String spaceTitle)
filePath
- the file path to the mailboxspaceKey
- the space key to import intospaceTitle
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |