com.atlassian.confluence.api
Class RemoteContentServiceAcceptanceTest
java.lang.Object
com.atlassian.confluence.api.AbstractAcceptanceTest
com.atlassian.confluence.api.AbstractRemoteServiceAcceptanceTest
com.atlassian.confluence.api.RemoteContentServiceAcceptanceTest
public class RemoteContentServiceAcceptanceTest
- extends AbstractRemoteServiceAcceptanceTest
Tests the Content REST API via the RemoteContentService.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
RemoteContentServiceAcceptanceTest
public RemoteContentServiceAcceptanceTest()
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.