com.atlassian.confluence
Class AttachmentUploadAcceptanceTest
java.lang.Object
junit.framework.Assert
junit.framework.TestCase
com.atlassian.confluence.junit3.JUnit3TimingTestCase
com.atlassian.confluence.AbstractConfluenceAcceptanceTest
com.atlassian.confluence.AttachmentUploadAcceptanceTest
- All Implemented Interfaces:
- junit.framework.Test
public class AttachmentUploadAcceptanceTest
- extends AbstractConfluenceAcceptanceTest
Tests the action for uploading attachments directly from AJAX, etc.
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, setUp, setUpTestNG, tearDown, 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 |
AttachmentUploadAcceptanceTest
public AttachmentUploadAcceptanceTest()
testUploadAttachments
public void testUploadAttachments()
throws Exception
- Throws:
Exception
testUploadAttachmentWithInvalidTypeGetsFixed
public void testUploadAttachmentWithInvalidTypeGetsFixed()
throws Exception
- Throws:
Exception
testUploadAttachmentWithGenericContentTypeGetsFixed
public void testUploadAttachmentWithGenericContentTypeGetsFixed()
throws Exception
- Throws:
Exception
testUploadAttachmentWithGenericContentTypeGetsFixedXlsm
public void testUploadAttachmentWithGenericContentTypeGetsFixedXlsm()
throws Exception
- Throws:
Exception
testUploadAttachmentWithGenericContentTypeGetsFixedXlsb
public void testUploadAttachmentWithGenericContentTypeGetsFixedXlsb()
throws Exception
- Throws:
Exception
testUploadAttachmentOfficeXmlAsZipLikeIEDoesIt
public void testUploadAttachmentOfficeXmlAsZipLikeIEDoesIt()
throws Exception
- Throws:
Exception
testUploadAttachmentOpenOfficeXmlAsZipLikeIEDoesIt
public void testUploadAttachmentOpenOfficeXmlAsZipLikeIEDoesIt()
throws Exception
- Throws:
Exception
testUploadAttachmentZipFile
public void testUploadAttachmentZipFile()
throws Exception
- Throws:
Exception
testUploadAttachmentKeepsProperContentTypeJpeg
public void testUploadAttachmentKeepsProperContentTypeJpeg()
throws Exception
- Throws:
Exception
testUploadAttachmentKeepsProperContentTypeGif
public void testUploadAttachmentKeepsProperContentTypeGif()
throws Exception
- Throws:
Exception
testUploadAttachmentKeepsProperContentTypePng
public void testUploadAttachmentKeepsProperContentTypePng()
throws Exception
- Throws:
Exception
testUploadAttachmentKeepsProperContentTypeTxt
public void testUploadAttachmentKeepsProperContentTypeTxt()
throws Exception
- Throws:
Exception
testUploadAttachmentGetsXssSafeContentTypeHtml
public void testUploadAttachmentGetsXssSafeContentTypeHtml()
throws Exception
- Throws:
Exception
testUploadAttachmentGetsXssSafeContentTypeTextXml
public void testUploadAttachmentGetsXssSafeContentTypeTextXml()
throws Exception
- Throws:
Exception
testUploadAttachmentGetsXssSafeContentTypeApplicationXml
public void testUploadAttachmentGetsXssSafeContentTypeApplicationXml()
throws Exception
- Throws:
Exception
testUploadAttachmentGetsXssSafeContentTypeAtom
public void testUploadAttachmentGetsXssSafeContentTypeAtom()
throws Exception
- Throws:
Exception
testRenamePageForLinkInsideImage
public void testRenamePageForLinkInsideImage()
throws IOException,
org.apache.xmlrpc.XmlRpcException
- This test was moved from its prior home of
PageOperationsAcceptanceTest
.
It needed some API to upload an image from the acceptance test classpath. This API is available in this test class
but has not been made available yet to other classes. Making this reusable is beyond scope.
- Throws:
IOException
org.apache.xmlrpc.XmlRpcException
testValidationErrorWhenAttachmentTooLarge
public void testValidationErrorWhenAttachmentTooLarge()
throws Exception
- Throws:
Exception
testValidationErrorWhenNotPermitted
public void testValidationErrorWhenNotPermitted()
throws Exception
- Throws:
Exception
testValidationErrorWhenTooManyAttachments
public void testValidationErrorWhenTooManyAttachments()
throws Exception
- Throws:
Exception
testUrlEscapingWhenSpecialCharactersInFilename
public void testUrlEscapingWhenSpecialCharactersInFilename()
throws Exception
- Throws:
Exception
Copyright © 2003-2013 Atlassian. All Rights Reserved.