public class AttachmentAcceptanceTest extends AbstractConfluenceAcceptanceTest
Modifier and Type | Field and Description |
---|---|
static String |
PROPERTIES_LINK_TEXT |
DASHBOARD_RECENT_UPDATES_REST_URL, DASHBOARD_RECENT_UPDATES_URL, logAdjuster, ONBOARDING_PLUGIN, rpc, 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, createSpaceViaWebUI, createTestSpaceViaWebUI, createTestUser, darkFeatures, directoryConfig, generateFile, getAppContext, getBaseUrl, getConfiguredBaseUrl, getPluginHelper, getServerStateManager, getTestDescription, goToBlogCollector, logins, logout, pages, plugins, rebuildIndex, substituteForNodeBaseUrl, tearDown, users, viewHomepage, viewSpaceAdmin, viewSpacePermissions, viewSpaceSummary, viewSpaceTools, viewTrash, watchSpace, webAppContextPath
runBare, setExceptionTransformer
countTestCases, createResult, getName, run, run, runTest, setName, toString
assertEquals, 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, fail, fail, failNotEquals, failNotSame, failSame, format
public static final String PROPERTIES_LINK_TEXT
protected void setUp() throws Exception
AbstractConfluenceAcceptanceTest
setUp
in class AbstractConfluenceAcceptanceTest
Exception
- from superpublic void testAttachmentIconDisplayedAsPageMetaData() throws Exception
Exception
public void testAddAttachmentWithCaptchaEnabledAndWrongCaptcha()
public void testMaxAttachmentSizeRespected()
public void testMaxAttachmentsInUI()
public void testAttachMultipleFiles()
public void testAttachmentPagination() throws UnsupportedEncodingException
UnsupportedEncodingException
public void testHighlightAttachmentWithPagination() throws UnsupportedEncodingException
UnsupportedEncodingException
public void testAttachFileWithSpecialCharacters()
public void testFilenameWithSpaceIsPercentEncoded()
public void testV1andV2AttachmentUrls()
public void testDownloadFilesWithPlusSignsAndSpaces() throws IOException
IOException
public void testDownloadAttachmentAfterLoginRedirect() throws SAXException, IOException
SAXException
IOException
public 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
Exception
public void testDownloadAllAttachmentsOnPageLink() throws IOException, SAXException
IOException
SAXException
public void testDownloadSingleAttachment() throws SAXException, IOException
SAXException
IOException
public void testDownloadAllAttachments()
public void testDownloadAllAttachmentsAsAnonymousUser() throws Exception
Exception
public 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
Exception
public void testMovingAttachmentSimplifiesLinksInNewOwner() throws Exception
Exception
public void testMovingAttachmentUpdatesLinksWithPagePrefix() throws Exception
Exception
public void testMovingAttachmentDoesNotUpdateLinksWithoutAttachments() throws Exception
Exception
public void testMovingAttachmentDoesNotBreakLinkToOtherAttachmentsWithSameName() throws Exception
Exception
public void testLargeAttachmentNotTruncated() throws Exception
Exception
public void testHtmlAttachmentsAreNotServedInline()
public void testAttachmentVersioning() throws IOException, SAXException
IOException
SAXException
public void testAttachmentRangeRequest() throws IOException
IOException
public void testInvalidDownloadUrlReturnsFourOhFour() throws Exception
Exception
public void testUploaderOfNewAttachmentVersionIsAcknowledgedAsCreator()
public void testRemoveCommentOnAttachment()
public void testEditingAttachmentWithoutAddAttachmentPermissions()
public void testMovingAttachmentToPageWithoutViewPermissions()
public void testMoveAttachmentWithoutRemovePermission()
public void testMoveAttachmentToUnpermittedPage()
public void testSortingByCreatedDate() throws UnsupportedEncodingException
UnsupportedEncodingException
public void testAttachmentAuthorshipPreservedOnAttachmentMoveAndComment() throws Exception
Exception
public void testAttachmentNamesNotTruncatedOnServerSide()
public void testMissingAttachmentOnDrafts()
Copyright © 2003–2016 Atlassian. All rights reserved.