Package com.atlassian.confluence.it.api
Class TestAttachmentFactory
- java.lang.Object
-
- com.atlassian.confluence.it.api.TestAttachmentFactory
-
public class TestAttachmentFactory extends Object
Assists with creation of Attachments for acceptance tests.
-
-
Constructor Summary
Constructors Constructor Description TestAttachmentFactory(AttachmentService service)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Content
addAttachment()
List<Content>
addAttachments(int numFiles)
PageResponse<Content>
addAttachments(int numFiles, javax.ws.rs.core.MediaType contentType)
List<AttachmentUpload>
makeUploads(int numFiles, javax.ws.rs.core.MediaType contentType)
-
-
-
Constructor Detail
-
TestAttachmentFactory
public TestAttachmentFactory(AttachmentService service)
-
-
Method Detail
-
addAttachments
public List<Content> addAttachments(int numFiles) throws IOException, ServiceException
- Throws:
IOException
ServiceException
-
addAttachment
public Content addAttachment() throws IOException, ServiceException
- Throws:
IOException
ServiceException
-
addAttachments
public PageResponse<Content> addAttachments(int numFiles, javax.ws.rs.core.MediaType contentType) throws IOException, ServiceException
- Throws:
IOException
ServiceException
-
makeUploads
public List<AttachmentUpload> makeUploads(int numFiles, javax.ws.rs.core.MediaType contentType) throws IOException
- Throws:
IOException
-
-