com.atlassian.confluence.api
Class RemoteContentServiceAcceptanceTest

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

public class RemoteContentServiceAcceptanceTest
extends AbstractRemoteServiceAcceptanceTest

Tests the Content REST API via the RemoteContentService.


Field Summary
static java.lang.String EDITOR_FORMAT_CHEESE_MACRO
           
static java.lang.String STORAGE_FORMAT_CHEESE_MACRO
           
 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, testName
 
Constructor Summary
RemoteContentServiceAcceptanceTest()
           
 
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 testCanFetchPageWithExpandedBody()
           
 void testContentServiceDoesNotReturnHistoricalVersions()
           
 void testContentWithVersionButCollapsedState()
           
 void testCreateBlogComment()
           
 void testCreateBlogPost()
           
 void testCreateComment()
           
 void testCreateCommentWithParent()
           
 void testCreatePage()
           
 void testCreatePageWithBodyRequiringContext()
           
 void testCreatePageWithDuplicateTitle()
           
 void testCreatePageWithEditorFormat()
           
 void testDeleteBlogPost()
           
 void testDeleteComment()
           
 void testDeletePage()
           
 void testDeleteUnknownContent()
           
 void testDeleteUnpermittedContent()
           
 void testFindByDate()
           
 void testFindCommentByIdWithContainerExpansion()
           
 void testFindCommentByIdWithNoExpansions()
           
 void testGetBlogBySpaceKeyTitleAndDate()
           
 void testGetContentByIdWithLikesExpanded()
           
 void testGetContentBySpaceKeyAndTitle()
           
 void testGetMissingContentById()
           
 void testGetPageById()
           
 void testGetPageByIdExpandExportView()
           
 void testsGetContentByIdWithLabelsExpanded()
           
 void testUpdateBlogPostContent()
           
 void testUpdateCommentContent()
           
 void testUpdatePageContent()
           
 
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
 

Field Detail

EDITOR_FORMAT_CHEESE_MACRO

public static final java.lang.String EDITOR_FORMAT_CHEESE_MACRO
See Also:
Constant Field Values

STORAGE_FORMAT_CHEESE_MACRO

public static final java.lang.String STORAGE_FORMAT_CHEESE_MACRO
See Also:
Constant Field Values

thrown

public org.junit.rules.ExpectedException thrown
Constructor Detail

RemoteContentServiceAcceptanceTest

public RemoteContentServiceAcceptanceTest()
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

testGetPageById

public void testGetPageById()
                     throws ServiceException
Throws:
ServiceException

testGetPageByIdExpandExportView

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

testFindCommentByIdWithNoExpansions

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

testFindCommentByIdWithContainerExpansion

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

testGetMissingContentById

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

testGetContentBySpaceKeyAndTitle

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

testGetBlogBySpaceKeyTitleAndDate

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

testFindByDate

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

testGetContentByIdWithLikesExpanded

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

testsGetContentByIdWithLabelsExpanded

public void testsGetContentByIdWithLabelsExpanded()
                                           throws ServiceException
Throws:
ServiceException

testContentServiceDoesNotReturnHistoricalVersions

public void testContentServiceDoesNotReturnHistoricalVersions()
                                                       throws BadRequestException
Throws:
BadRequestException

testCreatePage

public void testCreatePage()
                    throws ServiceException
Throws:
ServiceException

testCreatePageWithDuplicateTitle

public void testCreatePageWithDuplicateTitle()
                                      throws ServiceException
Throws:
ServiceException

testCreatePageWithEditorFormat

public void testCreatePageWithEditorFormat()
                                    throws ServiceException
Throws:
ServiceException

testCreateBlogPost

public void testCreateBlogPost()
                        throws ServiceException
Throws:
ServiceException

testCreateComment

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

testCreateCommentWithParent

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

testCreateBlogComment

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

testUpdatePageContent

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

testUpdateBlogPostContent

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

testUpdateCommentContent

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

testDeletePage

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

testDeleteBlogPost

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

testDeleteComment

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

testDeleteUnpermittedContent

public void testDeleteUnpermittedContent()
                                  throws ServiceException
Throws:
ServiceException

testDeleteUnknownContent

public void testDeleteUnknownContent()
                              throws ServiceException
Throws:
ServiceException

testContentWithVersionButCollapsedState

public void testContentWithVersionButCollapsedState()
                                             throws ServiceException
Throws:
ServiceException

testCreatePageWithBodyRequiringContext

public void testCreatePageWithBodyRequiringContext()
                                            throws ServiceException
Throws:
ServiceException

testCanFetchPageWithExpandedBody

public void testCanFetchPageWithExpandedBody()
                                      throws ServiceException
Throws:
ServiceException


Copyright © 2003-2014 Atlassian. All Rights Reserved.