public class AttachmentAcceptanceTest extends AbstractConfluenceAcceptanceTest
| Modifier and Type | Field and Description |
|---|---|
static String |
PROPERTIES_LINK_TEXT |
confluenceAdministrator, DASHBOARD_RECENT_UPDATES_REST_URL, DASHBOARD_RECENT_UPDATES_URL, log, logAdjuster, rpc, systemAdministrator, TEST_ADMIN, TEST_BLOG, TEST_COMMENT, TEST_GROUP1, TEST_GROUP2, TEST_PAGE, TEST_SPACE, TEST_SPACE2, TEST_USER1, TEST_USER2, TESTBLOG_CONTENT, TESTBLOG_TITLE, testData, TESTPAGE_COMMENT, TESTPAGE_CONTENT, TESTPAGE_TITLE, TESTSPACE_KEY, TESTSPACE_TITLE, TESTSPACE2_KEY, TESTSPACE2_TITLE, webTester, wikiMarkupRpc| Constructor and Description |
|---|
AttachmentAcceptanceTest() |
adminConsole, attachments, baseUrlSelector, createAdminUsers, createSpaceViaWebUI, createTestSpaceViaWebUI, createTestUser, darkFeatures, directoryConfig, disableBatchingDarkFeature, enableBatchingDarkFeature, enableBatchingTrigger, generateFile, getAppContext, getBaseUrl, getConfiguredBaseUrl, getPluginHelper, getServerStateManager, getTestDescription, goToBlogCollector, logins, logout, logTestStart, pages, pauseAndFlushIndexQueue, plugins, rebuildIndex, substituteForNodeBaseUrl, tearDown, users, viewHomepage, viewSpaceAdmin, viewSpacePermissions, viewSpaceSummary, viewSpaceTools, viewTrash, watchSpace, webAppContextPathrunBare, setExceptionTransformerassertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runTest, setName, toStringpublic static final String PROPERTIES_LINK_TEXT
protected void setUp()
throws Exception
AbstractConfluenceAcceptanceTestsetUp in class AbstractConfluenceAcceptanceTestException - from superpublic void testAttachmentIconDisplayedAsPageMetaData()
throws Exception
Exceptionpublic void testAddAttachmentWithCaptchaEnabledAndWrongCaptcha()
public void testMaxAttachmentSizeRespected()
public void testMaxAttachmentsInUI()
public void testAttachMultipleFiles()
public void testAttachmentPagination()
throws UnsupportedEncodingException
UnsupportedEncodingExceptionpublic void testHighlightAttachmentWithPagination()
throws UnsupportedEncodingException
UnsupportedEncodingExceptionpublic void testAttachFileWithSpecialCharacters()
public void testFilenameWithSpaceIsPercentEncoded()
public void testV1andV2AttachmentUrls()
public void testDownloadFilesWithPlusSignsAndSpaces()
throws IOException
IOExceptionpublic void testDownloadAttachmentAfterLoginRedirect()
throws SAXException,
IOException
SAXExceptionIOExceptionpublic void testAttachmentWithSimilarNameButDifferentCaseIsAddedAsHistoricalVersion()
public void testRemoveAttachmentAndAllPreviousVersions()
public void testRemoveAttachmentAndPreviousVersionsViaAction()
public void testRemoveAttachmentAndPreviousVersionsViaActionPreventsInjection()
public void testLeavingEditAttachmentRedirectsToCorrectViewPage()
public void testLeavingEditAttachmentRedirectsToCorrectAttachmentsView()
public void testRemoveAttachmentVersions()
public void testFilterByFileExtension()
public void testFilterByFileExtensionWithPagination()
public void testFilterByDifferentCasedFileExtension()
public void testListSpaceAttachmentsMoreThanMaxResults()
throws Exception
Exceptionpublic void testDownloadAllAttachmentsOnPageLink()
throws IOException,
SAXException
IOExceptionSAXExceptionpublic void testDownloadSingleAttachment()
throws SAXException,
IOException
SAXExceptionIOExceptionpublic void testDownloadAllAttachments()
public void testDownloadAllAttachmentsAsAnonymousUser()
throws Exception
Exceptionpublic void testFileNameIsRequired()
public void testMoveFileToAnotherPage()
public void testCannotMoveFileToAnotherPageThatDoesNotExist()
public void testMoveAttachmentToAnotherPageAndBack()
public void testMoveFileToAnotherSpace()
public void testNoXssWithFileRename()
public void testNotAbleToRenameFileToExistingFileNameInOtherSpace()
public void testNotAbleToRenameFileToEmptyFileNameInOtherSpace()
public void testNotAbleToRenameFileToExistingFileName()
public void testMovingAttachmentUpdatesLinksOnOriginalOwner()
throws Exception
Exceptionpublic void testMovingAttachmentSimplifiesLinksInNewOwner()
throws Exception
Exceptionpublic void testMovingAttachmentUpdatesLinksWithPagePrefix()
throws Exception
Exceptionpublic void testMovingAttachmentDoesNotUpdateLinksWithoutAttachments()
throws Exception
Exceptionpublic void testMovingAttachmentDoesNotBreakLinkToOtherAttachmentsWithSameName()
throws Exception
Exceptionpublic void testLargeAttachmentNotTruncated()
throws Exception
Exceptionpublic void testHtmlAttachmentsAreNotServedInline()
public void testAttachmentVersioning()
throws IOException,
SAXException
IOExceptionSAXExceptionpublic void testAttachmentRangeRequest()
throws IOException
IOExceptionpublic void testInvalidDownloadUrlReturnsFourOhFour()
throws Exception
Exceptionpublic void testUploaderOfNewAttachmentVersionIsAcknowledgedAsCreator()
public void testRemoveCommentOnAttachment()
public void testEditingAttachmentWithoutAddAttachmentPermissions()
public void testMovingAttachmentToPageWithoutViewPermissions()
public void testMoveAttachmentWithoutRemovePermission()
public void testMoveAttachmentToUnpermittedPage()
public void testSortingByCreatedDate()
throws UnsupportedEncodingException
UnsupportedEncodingExceptionpublic void testAttachmentAuthorshipPreservedOnAttachmentMoveAndComment()
throws Exception
Exceptionpublic void testAttachmentNamesNotTruncatedOnServerSide()
public void testMissingAttachmentOnDrafts()
Copyright © 2003–2018 Atlassian. All rights reserved.