com.atlassian.confluence.it.api
Class TestAttachmentFactory

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

public class TestAttachmentFactory
extends java.lang.Object

Assists with creation of Attachments for acceptance tests.


Constructor Summary
TestAttachmentFactory(AttachmentService service)
           
 
Method Summary
 java.util.List<Content> addAttachments(int numFiles)
           
 PageResponse<Content> addAttachments(int numFiles, javax.ws.rs.core.MediaType contentType)
           
 java.util.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 java.util.List<Content> addAttachments(int numFiles)
                                       throws java.io.IOException,
                                              ServiceException
Throws:
java.io.IOException
ServiceException

addAttachments

public PageResponse<Content> addAttachments(int numFiles,
                                            javax.ws.rs.core.MediaType contentType)
                                     throws java.io.IOException,
                                            ServiceException
Throws:
java.io.IOException
ServiceException

makeUploads

public java.util.List<AttachmentUpload> makeUploads(int numFiles,
                                                    javax.ws.rs.core.MediaType contentType)
                                             throws java.io.IOException
Throws:
java.io.IOException


Copyright © 2003-2014 Atlassian. All Rights Reserved.