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