com.atlassian.confluence.api
Class RemoteContentBodyConversionServiceAcceptanceTest

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

public class RemoteContentBodyConversionServiceAcceptanceTest
extends AbstractRemoteServiceAcceptanceTest

Tests the ContentBody REST API via the RemoteContentBodyService.


Field Summary
 org.junit.rules.ExpectedException thrown
           
 
Fields inherited from class com.atlassian.confluence.api.AbstractRemoteServiceAcceptanceTest
proxyCreator
 
Fields inherited from class com.atlassian.confluence.api.AbstractAcceptanceTest
rpc, testHelper, testName
 
Constructor Summary
RemoteContentBodyConversionServiceAcceptanceTest()
           
 
Method Summary
protected  Collection<String> getExcludedMethodNamesForProxyTest()
          Returns a collection of method names to skip the proxy test for.
protected  Object getService()
           
protected  Class getServiceClass()
           
 void setUp()
           
 void tearDown()
           
 void testConvertEditorToStorage()
           
 void testConvertStorageToEditor()
           
 void testConvertStorageToExportView()
           
 void testConvertStorageToStorage()
           
 void testConvertStorageToStorageWithBadRequest()
           
 void testConvertStorageToView()
           
 void testConvertWithContentContext()
           
 void testMacroWritingToDBDoesntFailDueToReadOnlyTransaction()
          https://jira.atlassian.com/browse/CRA-175
 
Methods inherited from class com.atlassian.confluence.api.AbstractRemoteServiceAcceptanceTest
proxySetUp, testServiceProxy
 
Methods inherited from class com.atlassian.confluence.api.AbstractAcceptanceTest
commonSetUp, exceptionSupplier
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

thrown

public org.junit.rules.ExpectedException thrown
Constructor Detail

RemoteContentBodyConversionServiceAcceptanceTest

public RemoteContentBodyConversionServiceAcceptanceTest()
Method Detail

getService

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

getServiceClass

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

getExcludedMethodNamesForProxyTest

protected Collection<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 Exception
Throws:
Exception

tearDown

public void tearDown()
Overrides:
tearDown in class AbstractAcceptanceTest

testConvertStorageToStorage

public void testConvertStorageToStorage()
                                 throws ServiceException
Throws:
ServiceException

testConvertStorageToStorageWithBadRequest

public void testConvertStorageToStorageWithBadRequest()
                                               throws ServiceException
Throws:
ServiceException

testConvertStorageToEditor

public void testConvertStorageToEditor()
                                throws ServiceException
Throws:
ServiceException

testConvertStorageToView

public void testConvertStorageToView()
                              throws ServiceException
Throws:
ServiceException

testConvertEditorToStorage

public void testConvertEditorToStorage()
                                throws ServiceException
Throws:
ServiceException

testConvertStorageToExportView

public void testConvertStorageToExportView()
                                    throws Exception
Throws:
Exception

testConvertWithContentContext

public void testConvertWithContentContext()
                                   throws Exception
Throws:
Exception

testMacroWritingToDBDoesntFailDueToReadOnlyTransaction

public void testMacroWritingToDBDoesntFailDueToReadOnlyTransaction()
                                                            throws Exception
https://jira.atlassian.com/browse/CRA-175

Throws:
Exception


Copyright © 2003–2015 Atlassian. All rights reserved.