com.atlassian.confluence
Class AttachmentAcceptanceTest
java.lang.Object
junit.framework.Assert
junit.framework.TestCase
com.atlassian.confluence.junit3.JUnit3TimingTestCase
com.atlassian.confluence.AbstractConfluenceAcceptanceTest
com.atlassian.confluence.AttachmentAcceptanceTest
- All Implemented Interfaces:
- junit.framework.Test
public class AttachmentAcceptanceTest
- extends AbstractConfluenceAcceptanceTest
Fields inherited from class com.atlassian.confluence.AbstractConfluenceAcceptanceTest |
ANONYMOUS_USER, DASHBOARD_RECENT_UPDATES_URL, DIRECTORY_CONFIG, exceptionTransformer, filesToDelete, log, logAdjuster, RANDOM, rpc, serverStateManager, 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, VIEW_PERSONAL_SPACE_LINK, webTester, wikiMarkupRpc |
Methods inherited from class com.atlassian.confluence.AbstractConfluenceAcceptanceTest |
adminConsole, attachments, createAndWatchTestPage, createSpaceViaWebUI, createTestSpaceViaWebUI, disableAnonymousAccess, enableAnonymousAccess, generateBaseUrl, generateFile, getAppContext, getBaseUrl, getConfiguredBaseUrl, getFriendlyRelativeDate, getPluginHelper, goToBlogCollector, goToPagesCollector, isClustered, logInAsAdminAtHomepage, loginAsTestUser, loginAsTestUser2, loginAsTestUserAtHomepage, logins, logout, pages, rebuildIndex, setUp, setUpTestNG, tearDownTestNG, users, viewHomepage, viewPeopleDirectory, viewSpaceAdmin, viewSpacePermissions, viewSpaceSummary, viewSpaceTools, viewSpaceTools, viewTrash, watchSpace, webAppContextPath |
Methods inherited from class com.atlassian.confluence.junit3.JUnit3TimingTestCase |
runBare, setExceptionTransformer |
Methods inherited from class junit.framework.TestCase |
countTestCases, createResult, getName, run, run, runTest, setName, toString |
Methods inherited from class junit.framework.Assert |
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 |
PROPERTIES_LINK_TEXT
public static final String PROPERTIES_LINK_TEXT
- See Also:
- Constant Field Values
AttachmentAcceptanceTest
public AttachmentAcceptanceTest()
setUp
protected void setUp()
throws Exception
- Overrides:
setUp
in class AbstractConfluenceAcceptanceTest
- Throws:
Exception
tearDown
protected void tearDown()
throws Exception
- Description copied from class:
AbstractConfluenceAcceptanceTest
- Default tearDown method. Removes any files which were added to the
AbstractConfluenceAcceptanceTest.filesToDelete
list.
- Overrides:
tearDown
in class AbstractConfluenceAcceptanceTest
- Throws:
Exception
testAttachmentProperlyAttributedOnDashboard
public void testAttachmentProperlyAttributedOnDashboard()
throws Exception
- Throws:
Exception
testAttachmentIconAndCountDisplayedAsPageMetaData
public void testAttachmentIconAndCountDisplayedAsPageMetaData()
throws Exception
- Throws:
Exception
testAddAttachmentWithCaptchaEnabledAndWrongCaptcha
public void testAddAttachmentWithCaptchaEnabledAndWrongCaptcha()
testMaxAttachmentSizeRespected
public void testMaxAttachmentSizeRespected()
testMaxAttachmentsInUI
public void testMaxAttachmentsInUI()
testAttachMultipleFiles
public void testAttachMultipleFiles()
testAttachmentPagination
public void testAttachmentPagination()
throws UnsupportedEncodingException
- Throws:
UnsupportedEncodingException
testHighlightAttachmentWithPagination
public void testHighlightAttachmentWithPagination()
throws UnsupportedEncodingException
- Throws:
UnsupportedEncodingException
testAttachFileWithSpecialCharacters
public void testAttachFileWithSpecialCharacters()
testFilenameWithSpaceIsPercentEncoded
public void testFilenameWithSpaceIsPercentEncoded()
testV1andV2AttachmentUrls
public void testV1andV2AttachmentUrls()
testDownloadFilesWithPlusSignsAndSpaces
public void testDownloadFilesWithPlusSignsAndSpaces()
throws IOException
- Throws:
IOException
testAttachmentWithSimilarNameButDifferentCaseIsAddedAsHistoricalVersion
public void testAttachmentWithSimilarNameButDifferentCaseIsAddedAsHistoricalVersion()
- adding Foo.txt when foo.txt exists, should Foo.txt as a version (the case of foo.txt should be preserved)
testRemoveAttachmentAndAllPreviousVersions
public void testRemoveAttachmentAndAllPreviousVersions()
testRemoveAttachmentVersions
public void testRemoveAttachmentVersions()
testFilterByFileExtension
public void testFilterByFileExtension()
testFilterByFileExtensionWithPagination
public void testFilterByFileExtensionWithPagination()
testFilterByDifferentCasedFileExtension
public void testFilterByDifferentCasedFileExtension()
testListSpaceAttachmentsMoreThanMaxResults
public void testListSpaceAttachmentsMoreThanMaxResults()
throws Exception
- Throws:
Exception
testDownloadAllAttachmentsOnPageLink
public void testDownloadAllAttachmentsOnPageLink()
throws IOException,
SAXException
- Throws:
IOException
SAXException
testDownloadSingleAttachment
public void testDownloadSingleAttachment()
throws SAXException,
IOException
- Throws:
SAXException
IOException
testDownloadAllAttachments
public void testDownloadAllAttachments()
testDownloadAllAttachmentsAsAnonymousUser
public void testDownloadAllAttachmentsAsAnonymousUser()
throws Exception
- Throws:
Exception
testFileNameIsRequired
public void testFileNameIsRequired()
testMoveFileToAnotherPage
public void testMoveFileToAnotherPage()
testCannotMoveFileToAnotherPageThatDoesNotExist
public void testCannotMoveFileToAnotherPageThatDoesNotExist()
testMoveAttachmentToAnotherPageAndBack
public void testMoveAttachmentToAnotherPageAndBack()
testMoveFileToAnotherSpace
public void testMoveFileToAnotherSpace()
testNoXssWithFileRename
public void testNoXssWithFileRename()
testAttachmentsMacroOrder
public void testAttachmentsMacroOrder()
throws Exception
- Throws:
Exception
testNotAbleToRenameFileToExistingFileNameInOtherSpace
public void testNotAbleToRenameFileToExistingFileNameInOtherSpace()
testNotAbleToRenameFileToEmptyFileNameInOtherSpace
public void testNotAbleToRenameFileToEmptyFileNameInOtherSpace()
testNotAbleToRenameFileToExistingFileName
public void testNotAbleToRenameFileToExistingFileName()
testMovingAttachmentUpdatesLinksOnOriginalOwner
public void testMovingAttachmentUpdatesLinksOnOriginalOwner()
throws Exception
- Test of CONF-9007, that when an attachment is moved, links to it are
updated.
- Throws:
Exception
testMovingAttachmentSimplifiesLinksInNewOwner
public void testMovingAttachmentSimplifiesLinksInNewOwner()
throws Exception
- Test of CONF-9007, that when an attachment is moved, links to it from the new owning
page are simplified (Page prefix is removed).
- Throws:
Exception
testMovingAttachmentUpdatesLinksWithPagePrefix
public void testMovingAttachmentUpdatesLinksWithPagePrefix()
throws Exception
- Test of CONF-9007, that when an attachment is moved, links to it are
updated.
- Throws:
Exception
testMovingAttachmentDoesNotUpdateLinksWithoutAttachments
public void testMovingAttachmentDoesNotUpdateLinksWithoutAttachments()
throws Exception
- Throws:
Exception
testMovingAttachmentDoesNotBreakLinkToOtherAttachmentsWithSameName
public void testMovingAttachmentDoesNotBreakLinkToOtherAttachmentsWithSameName()
throws Exception
- Test that moving attachments does not update links to unmoved attachments with the same name. This is a
very edgy edge case indeed.
- Throws:
Exception
testLargeAttachmentNotTruncated
public void testLargeAttachmentNotTruncated()
throws Exception
- Throws:
Exception
testHtmlAttachmentsAreNotServedInline
public void testHtmlAttachmentsAreNotServedInline()
testAttachmentVersioning
public void testAttachmentVersioning()
throws IOException,
SAXException
- Throws:
IOException
SAXException
testInvalidDownloadUrlReturnsFourOhFour
public void testInvalidDownloadUrlReturnsFourOhFour()
throws Exception
- Throws:
Exception
testUploaderOfNewAttachmentVersionIsAcknowledgedAsCreator
public void testUploaderOfNewAttachmentVersionIsAcknowledgedAsCreator()
testRemoveCommentOnAttachment
public void testRemoveCommentOnAttachment()
testMovingAttachmentToPageWithoutViewPermissions
public void testMovingAttachmentToPageWithoutViewPermissions()
testMoveAttachmentToUnpermittedPage
public void testMoveAttachmentToUnpermittedPage()
testSortingByCreatedDate
public void testSortingByCreatedDate()
throws UnsupportedEncodingException
- Throws:
UnsupportedEncodingException
testAttachmentAuthorshipPreservedOnAttachmentMoveAndComment
public void testAttachmentAuthorshipPreservedOnAttachmentMoveAndComment()
throws Exception
- Throws:
Exception
Copyright © 2003-2013 Atlassian. All Rights Reserved.