public class RemoteContentServiceAcceptanceTest extends AbstractRemoteServiceAcceptanceTest
| Modifier and Type | Field and Description |
|---|---|
static String |
EDITOR_FORMAT_CHEESE_MACRO |
org.junit.rules.ExpectedException |
expectedException |
proxyCreatorrpc, testHelper, testName| Constructor and Description |
|---|
RemoteContentServiceAcceptanceTest() |
checkPageResponse, initialize, prepareMspacesWithNpages, prepareSpacesAndUsersWithCascadedVisibility, proxySetUp, spaceByNumber, testServiceProxy, userByNumbercommonSetUp, directoryConfiguration, exceptionSupplier, pauseAndFlushIndexQueue, userspublic static final String EDITOR_FORMAT_CHEESE_MACRO
public org.junit.rules.ExpectedException expectedException
protected Object getService()
getService in class AbstractRemoteServiceAcceptanceTestprotected Class getServiceClass()
getServiceClass in class AbstractRemoteServiceAcceptanceTestprotected Collection<String> getExcludedMethodNamesForProxyTest()
AbstractRemoteServiceAcceptanceTestOverridden 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.
getExcludedMethodNamesForProxyTest in class AbstractRemoteServiceAcceptanceTestpublic void testContentWebResourceExpansion()
public void testGetPageById()
throws ServiceException
ServiceExceptionpublic void testGetDraftById()
public void testOnlyUnpublishedDraftsFetchedByStatus()
public void testUnpublishedDraftSharedAccess()
public void testGetPageByIdExpandExportView()
throws Exception
Exceptionpublic void testContentPaginationIsCorrectWithDifferentPermissions()
throws Exception
Exceptionpublic void testFindCommentByIdWithNoExpansions()
throws Exception
Exceptionpublic void testFindCommentByIdWithContainerExpansion()
throws Exception
Exceptionpublic void testGetMissingContentById()
throws Exception
Exceptionpublic void testGetCurrentContentBySpaceKeyAndTitle()
throws Exception
Exceptionpublic void testGetCurrentBlogBySpaceKeyTitleAndDate()
throws Exception
Exceptionpublic void testGetAllCurrentPagesBySpace()
throws Exception
Exceptionpublic void testGetAllTrashedPagesBySpace()
throws Exception
Exceptionpublic void testGetAllCurrentAndTrashedPagesBySpace()
throws Exception
Exceptionpublic void testGetAllCurrentAndTrashedPages()
throws Exception
Exceptionpublic void testGetAllCurrentBlogPostsBySpace()
throws Exception
Exceptionpublic void testGetAllCurrentBlogPosts()
throws Exception
Exceptionpublic void testGetCurrentPagesBySpaceAndTitle()
throws Exception
Exceptionpublic void testGetCurrentPagesBySpaceAndCreationDate()
throws Exception
Exceptionpublic void testFindCurrentContentByDate()
throws Exception
Exceptionpublic void testGetContentByIdWithLikesExpanded()
throws Exception
Exceptionpublic void testGetContentByIdWithLabelsExpanded()
throws ServiceException
ServiceExceptionpublic void testGetContentByIdWithPropertiesExpanded()
throws ServiceException,
IOException
ServiceExceptionIOExceptionpublic void testGetContentByIdOperationsExpansionsForPage()
throws ServiceException
ServiceExceptionpublic void testGetContentByIdOperationsExpansionsForBlogPost()
throws ServiceException
ServiceExceptionpublic void testGetContentByIdOperationsExpansionsForComment()
throws ServiceException
ServiceExceptionpublic void testContentServiceDoesNotReturnHistoricalVersions()
throws BadRequestException
BadRequestExceptionpublic void testCreatePage()
throws ServiceException
ServiceExceptionpublic void testCreatePageWithLargeContentMaintainedMaxLimitRequestSize()
throws ServiceException
ServiceExceptionpublic void testCreatePageWithLargeContentExceedMaxLimitRequestSize()
throws ServiceException
ServiceExceptionpublic void testCreatePageWithTitleTooLong()
throws ServiceException
ServiceExceptionpublic void testCreatePageWithDuplicateTitle()
throws ServiceException
ServiceExceptionpublic void testCreatePageWithEditorFormat()
throws ServiceException
ServiceExceptionpublic void testCreateDraftPage()
throws ServiceException
ServiceExceptionpublic void testCreateDraftOfPage()
public void testCreateBlogPost()
throws ServiceException
ServiceExceptionpublic void testCreateDraftBlogPost()
throws ServiceException
ServiceExceptionpublic void testCreateCommentWithParent()
throws Exception
Exceptionpublic void testCollaboratorsPersistedOnPageCreate()
public void testCollaboratorsPersistedOnDraftCreate()
public void testCollaboratorsPersistedOnPageUpdate()
public void testUpdateBlogPostContent()
throws Exception
Exceptionpublic void testUpdateLabelsInRestListWithPage()
throws Exception
Exceptionpublic void testUpdateLabelsWithBlogPost()
throws Exception
Exceptionpublic void testUpdateMetadataWithAttachment()
throws Exception
Exceptionpublic void testUpdateWithoutVersionThrowsBadRequest()
public void testUpdateWithTitleTooLong()
public void testDeleteDraftIsNotPermitted()
public void testDeleteUnpermittedContent()
throws ServiceException
ServiceExceptionpublic void testDeleteUnpermittedAttachment()
throws ServiceException
ServiceExceptionpublic void testDeleteUnknownContent()
throws ServiceException
ServiceExceptionpublic void testCannotUpdateDeletedPage()
throws Exception
Exceptionpublic void testCanRestoreDeletedPage()
throws Exception
Exceptionpublic void testRestoreAttachmentByUpdate()
throws Exception
Exceptionpublic void testRestoreUnpermittedAttachmentByUpdate()
throws Exception
Exceptionpublic void testRestoreClashingAttachment()
throws Exception
Exceptionpublic void testContentWithVersionButCollapsedState()
throws ServiceException
ServiceExceptionpublic void testCreatePageWithBodyRequiringContext()
throws ServiceException
ServiceExceptionpublic void testCreatePageWithWrongMacroBodyTypeIsSafe()
throws ServiceException
ServiceExceptionpublic void testCanFetchPageWithExpandedBody()
throws ServiceException
ServiceExceptionpublic void testFetchContentWithAncestorsExpanded()
throws ServiceException
ServiceExceptionpublic void testGetContentIncludesUnprocessedBodyWithTables()
throws Exception
Exceptionpublic void testShouldNotRenderNestedMacroInUnprocessedBody()
throws Exception
Exceptionpublic void testCommentWithDeletedParent()
public void testGetContentIncludesUnprocessedBodyWithSubMacros()
throws Exception
Exceptionpublic void testGetHistoricalContentFailsWithoutVersion()
public void testReturnedIdIsAlwaysTheMainOne()
Copyright © 2003–2017 Atlassian. All rights reserved.