public abstract static class RemoteContentServiceAcceptanceTest.Fixture extends AbstractRemoteServiceAcceptanceTest
| Modifier and Type | Field and Description |
|---|---|
org.junit.rules.ExpectedException |
expectedException |
proxyCreatorrpc, testHelper, testName| Constructor and Description |
|---|
Fixture() |
checkPageResponse, prepareMspacesWithNpages, prepareSpacesAndUsersWithCascadedVisibility, proxySetUp, spaceByNumber, testServiceProxy, userByNumbercommonSetUp, directoryConfiguration, exceptionSupplier, pauseAndFlushIndexQueue, usersprotected abstract ContentService makeContentService()
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()
public void testContentPaginationIsCorrectWithDifferentPermissions()
public void testFindCommentByIdWithNoExpansions()
public void testFindCommentByIdWithContainerExpansion()
public void testGetMissingContentById()
public void testGetCurrentContentBySpaceKeyAndTitle()
public void testGetCurrentBlogBySpaceKeyTitleAndDate()
public void testGetAllCurrentPagesBySpace()
public void testGetAllTrashedPagesBySpace()
public void testGetAllCurrentAndTrashedPagesBySpace()
public void testGetAllCurrentAndTrashedPages()
public void testGetAllCurrentBlogPostsBySpace()
public void testGetAllCurrentBlogPosts()
public void testGetCurrentPagesBySpaceAndTitle()
public void testGetCurrentPagesBySpaceAndCreationDate()
public void testFindCurrentContentByDate()
public void testGetContentByIdWithLikesExpanded()
public 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 testCreateComment()
public void testCreateCommentWithParent()
public void testCreateBlogComment()
public void testUpdatePageContent()
public void testCollaboratorsPersistedOnPageCreate()
public void testCollaboratorsPersistedOnDraftCreate()
public void testCollaboratorsPersistedOnPageUpdate()
public void testUpdateBlogPostContent()
public void testUpdateCommentContent()
public void testUpdatePageWithParent()
public void testUpdateLabelsWithPage()
public void testUpdateLabelsInRestListWithPage()
public void testUpdateLabelsWithBlogPost()
public void testUpdateMetadataWithAttachment()
public void testUpdateWithoutVersionThrowsBadRequest()
public void testUpdateWithTitleTooLong()
public void testDeletePage()
public void testDeleteBlogPost()
public void testDeleteComment()
public void testDeleteAttachment()
public void testDeleteDraftIsNotPermitted()
public void testDeleteUnpermittedContent()
throws ServiceException
ServiceExceptionpublic void testDeleteUnpermittedAttachment()
throws ServiceException
ServiceExceptionpublic void testDeleteUnknownContent()
throws ServiceException
ServiceExceptionpublic void testCannotUpdateDeletedPage()
public void testCanRestoreDeletedPage()
public void testRestoreAttachmentByUpdate()
public void testRestoreUnpermittedAttachmentByUpdate()
public void testRestoreClashingAttachment()
public 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()
public void testConvertWithContentContextAndStyles()
Copyright © 2003–2019 Atlassian. All rights reserved.