com.atlassian.confluence.api
Class AbstractRemoteServiceAcceptanceTest

java.lang.Object
  extended by com.atlassian.confluence.api.AbstractAcceptanceTest
      extended by com.atlassian.confluence.api.AbstractRemoteServiceAcceptanceTest
Direct Known Subclasses:
RemoteAttachmentServiceAcceptanceTest, RemoteChildContentServiceAcceptanceTest, RemoteContentBodyConversionServiceAcceptanceTest, RemoteContentLabelServiceAcceptanceTest, RemoteContentMacroServiceAcceptanceTest, RemoteContentServiceAcceptanceTest, RemoteSpaceServiceAcceptanceTest

public abstract class AbstractRemoteServiceAcceptanceTest
extends AbstractAcceptanceTest

Provides common acceptance tests for RemoteServices.


Field Summary
protected  com.atlassian.confluence.api.ProxyCreator proxyCreator
           
 
Fields inherited from class com.atlassian.confluence.api.AbstractAcceptanceTest
rpc, testName
 
Constructor Summary
AbstractRemoteServiceAcceptanceTest()
           
 
Method Summary
protected  java.util.Collection<java.lang.String> getExcludedMethodNamesForProxyTest()
          Returns a collection of method names to skip the proxy test for.
protected abstract  java.lang.Object getService()
           
protected abstract  java.lang.Class getServiceClass()
           
 void proxySetUp()
           
 void testServiceProxy()
          Test that RemoteService equivalents for API Service interfaces include all of the methods on the Services.
 
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
 

Field Detail

proxyCreator

protected com.atlassian.confluence.api.ProxyCreator proxyCreator
Constructor Detail

AbstractRemoteServiceAcceptanceTest

public AbstractRemoteServiceAcceptanceTest()
Method Detail

proxySetUp

public final void proxySetUp()
                      throws java.lang.Exception
Throws:
java.lang.Exception

getService

protected abstract java.lang.Object getService()
Returns:
the proxy of the API Service under test.

getServiceClass

protected abstract java.lang.Class getServiceClass()
Returns:
the class of the API Service under test.

testServiceProxy

public void testServiceProxy()
                      throws java.lang.Exception
Test that RemoteService equivalents for API Service interfaces include all of the methods on the Services.

Throws:
java.lang.Exception

getExcludedMethodNamesForProxyTest

protected java.util.Collection<java.lang.String> getExcludedMethodNamesForProxyTest()
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.



Copyright © 2003-2014 Atlassian. All Rights Reserved.