com.atlassian.confluence.it.api
Class TestAttachmentFactory

java.lang.Object
  extended by com.atlassian.confluence.it.api.TestAttachmentFactory

public class TestAttachmentFactory
extends Object

Assists with creation of Attachments for acceptance tests.


Constructor Summary
TestAttachmentFactory(AttachmentService service)
           
 
Method Summary
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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


Copyright © 2003–2015 Atlassian. All rights reserved.