Package com.atlassian.confluence.it
Class AttachmentsTester
- java.lang.Object
-
- com.atlassian.confluence.it.AttachmentsTester
-
public class AttachmentsTester extends Object
-
-
Constructor Summary
Constructors Constructor Description AttachmentsTester(net.sourceforge.jwebunit.junit.WebTester webTester)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidattachFile(File attachment)voidattachFile(File attachment, @Nullable String comment)Click the attach file link, attach a given file with a given comment and submit the attachment form.voidattachFileWithName(String fileName, InputStream in, String comment)Click the attach file link, attach a given file with a given comment and submit the attachment form.voiddeleteFileWithName(String fileName)Click the attach file link, trash a given file with a given name and submit the trash form.static FilegenerateAttachment(String filename, String text)static FilegenerateLargeAttachment(String filename, long bytes)
-
-
-
Method Detail
-
attachFile
public void attachFile(File attachment)
-
attachFile
public 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.- Parameters:
attachment- the file attachmentcomment- the comment for the attachment
-
attachFileWithName
public 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.- Parameters:
fileName- the filename to attachin- the stream to read the filecomment- a comment for this attachment
-
deleteFileWithName
public void deleteFileWithName(String fileName)
Click the attach file link, trash a given file with a given name and submit the trash form.- Parameters:
fileName- the filename to trash
-
-