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,
@Nullable 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 |
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) |
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 trashCopyright © 2003–2020 Atlassian. All rights reserved.