com.atlassian.confluence.api
Class RemoteAttachmentServiceAcceptanceTest

java.lang.Object
  extended by com.atlassian.confluence.api.AbstractAcceptanceTest
      extended by com.atlassian.confluence.api.AbstractRemoteServiceAcceptanceTest
          extended by com.atlassian.confluence.api.RemoteAttachmentServiceAcceptanceTest

public class RemoteAttachmentServiceAcceptanceTest
extends AbstractRemoteServiceAcceptanceTest


Field Summary
 
Fields inherited from class com.atlassian.confluence.api.AbstractRemoteServiceAcceptanceTest
proxyCreator
 
Fields inherited from class com.atlassian.confluence.api.AbstractAcceptanceTest
rpc, testName
 
Constructor Summary
RemoteAttachmentServiceAcceptanceTest()
           
 
Method Summary
protected  java.util.Collection<java.lang.String> getExcludedMethodNamesForProxyTest()
          Returns a collection of method names to skip the proxy test for.
protected  java.lang.Object getService()
           
protected  java.lang.Class getServiceClass()
           
 void setUp()
           
 void testAddAttachmentWithNoComment()
           
 void testAddAttachmentWithNoContentType()
           
 void testAddMultipleAttachment()
           
 void testAddSingleAttachment()
           
 void testDeleteAttachment()
           
 void testEditAttachment()
           
 void testEditAttachmentData()
           
 void testGetAttachmentByContentIdAndFilename()
           
 void testGetAttachmentById()
           
 void testGetAttachmentsFilteredByFilename()
           
 void testGetAttachmentsFilteredByMediaType()
           
 void testGetAttachmentsPaginated()
           
 
Methods inherited from class com.atlassian.confluence.api.AbstractRemoteServiceAcceptanceTest
proxySetUp, testServiceProxy
 
Methods inherited from class com.atlassian.confluence.api.AbstractAcceptanceTest
commonSetUp, exceptionSupplier, tearDown
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RemoteAttachmentServiceAcceptanceTest

public RemoteAttachmentServiceAcceptanceTest()
Method Detail

getService

protected java.lang.Object getService()
Specified by:
getService in class AbstractRemoteServiceAcceptanceTest
Returns:
the proxy of the API Service under test.

getServiceClass

protected java.lang.Class getServiceClass()
Specified by:
getServiceClass in class AbstractRemoteServiceAcceptanceTest
Returns:
the class of the API Service under test.

getExcludedMethodNamesForProxyTest

protected java.util.Collection<java.lang.String> getExcludedMethodNamesForProxyTest()
Description copied from class: AbstractRemoteServiceAcceptanceTest
Returns a collection of method names to skip the proxy test for.

Overridden by test classes for services with methods that are known to be implemented on the proxy, but not able to be tested with the logic in testServiceProxy. If we end up fixing the logic, these exclusions can (and should) be removed.

Overrides:
getExcludedMethodNamesForProxyTest in class AbstractRemoteServiceAcceptanceTest

setUp

public void setUp()
           throws java.lang.Exception
Throws:
java.lang.Exception

testAddSingleAttachment

public void testAddSingleAttachment()
                             throws java.lang.Exception
Throws:
java.lang.Exception

testAddAttachmentWithNoComment

public void testAddAttachmentWithNoComment()
                                    throws java.lang.Exception
Throws:
java.lang.Exception

testAddAttachmentWithNoContentType

public void testAddAttachmentWithNoContentType()
                                        throws java.lang.Exception
Throws:
java.lang.Exception

testAddMultipleAttachment

public void testAddMultipleAttachment()
                               throws java.lang.Exception
Throws:
java.lang.Exception

testGetAttachmentById

public void testGetAttachmentById()
                           throws java.lang.Exception
Throws:
java.lang.Exception

testGetAttachmentByContentIdAndFilename

public void testGetAttachmentByContentIdAndFilename()
                                             throws java.lang.Exception
Throws:
java.lang.Exception

testGetAttachmentsPaginated

public void testGetAttachmentsPaginated()
                                 throws java.lang.Exception
Throws:
java.lang.Exception

testGetAttachmentsFilteredByFilename

public void testGetAttachmentsFilteredByFilename()
                                          throws java.lang.Exception
Throws:
java.lang.Exception

testGetAttachmentsFilteredByMediaType

public void testGetAttachmentsFilteredByMediaType()
                                           throws java.lang.Exception
Throws:
java.lang.Exception

testEditAttachment

public void testEditAttachment()
                        throws ServiceException,
                               java.io.IOException
Throws:
ServiceException
java.io.IOException

testEditAttachmentData

public void testEditAttachmentData()
                            throws java.lang.Exception
Throws:
java.lang.Exception

testDeleteAttachment

public void testDeleteAttachment()
                          throws java.lang.Exception
Throws:
java.lang.Exception


Copyright © 2003-2014 Atlassian. All Rights Reserved.