public class AttachmentsTester extends Object
| Constructor and Description |
|---|
AttachmentsTester(net.sourceforge.jwebunit.junit.WebTester webTester) |
| Modifier and Type | Method and Description |
|---|---|
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)
Deprecated.
|
void |
deleteFileWithName(String fileName)
Click the attach file link, trash a given file with a given name and submit the trash form.
|
static File |
generateAttachment(String filename,
String text) |
static File |
generateLargeAttachment(String filename,
long bytes) |
void |
importMail(String filePath,
String spaceKey,
String spaceTitle)
Deprecated.
since 5.2 Use
MailArchivingHelper.importMail(String, String,
String) |
void |
importMailAndAssertNoRunningTask(String filePath,
String spaceKey,
String spaceTitle)
Deprecated.
|
public AttachmentsTester(net.sourceforge.jwebunit.junit.WebTester webTester)
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 deleteFileWithName(String fileName)
fileName - the filename to trash@Deprecated public void createMail(File mail, String spaceKey, String spaceTitle)
MailArchivingHelper.importMail(java.io.File,
String, String)@Deprecated public void importMail(String filePath, String spaceKey, String spaceTitle)
MailArchivingHelper.importMail(String, String,
String)@Deprecated public void importMailAndAssertNoRunningTask(String filePath, String spaceKey, String spaceTitle)
MailArchivingHelper.importMailAndAssertNoRunningTask(String,
String, String)Copyright © 2003–2019 Atlassian. All rights reserved.