|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object junit.framework.Assert junit.framework.TestCase com.atlassian.confluence.ThreadLocalWebTestCase com.atlassian.confluence.AbstractAtlassianWebTestCase com.atlassian.confluence.AbstractConfluenceAcceptanceTest com.atlassian.confluence.AttachmentUploadAcceptanceTest
public class AttachmentUploadAcceptanceTest
Tests the action for uploading attachments directly from AJAX, etc.
Field Summary |
---|
Constructor Summary | |
---|---|
AttachmentUploadAcceptanceTest()
|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AttachmentUploadAcceptanceTest()
Method Detail |
---|
public void testUploadAttachments() throws Exception
Exception
public void testUploadAttachmentWithInvalidTypeGetsFixed() throws Exception
Exception
public void testUploadAttachmentWithGenericContentTypeGetsFixed() throws Exception
Exception
public void testUploadAttachmentWithGenericContentTypeGetsFixedXlsm() throws Exception
Exception
public void testUploadAttachmentWithGenericContentTypeGetsFixedXlsb() throws Exception
Exception
public void testUploadAttachmentOfficeXmlAsZipLikeIEDoesIt() throws Exception
Exception
public void testUploadAttachmentOpenOfficeXmlAsZipLikeIEDoesIt() throws Exception
Exception
public void testUploadAttachmentZipFile() throws Exception
Exception
public void testUploadAttachmentKeepsProperContentTypeJpeg() throws Exception
Exception
public void testUploadAttachmentKeepsProperContentTypeGif() throws Exception
Exception
public void testUploadAttachmentKeepsProperContentTypePng() throws Exception
Exception
public void testUploadAttachmentKeepsProperContentTypeTxt() throws Exception
Exception
public void testUploadAttachmentGetsXssSafeContentTypeHtml() throws Exception
Exception
public void testUploadAttachmentGetsXssSafeContentTypeTextXml() throws Exception
Exception
public void testUploadAttachmentGetsXssSafeContentTypeApplicationXml() throws Exception
Exception
public void testUploadAttachmentGetsXssSafeContentTypeAtom() throws Exception
Exception
public void testRenamePageForLinkInsideImage() throws IOException, org.apache.xmlrpc.XmlRpcException
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.
IOException
org.apache.xmlrpc.XmlRpcException
public void testValidationErrorWhenAttachmentTooLarge() throws Exception
Exception
public void testValidationErrorWhenNotPermitted() throws Exception
Exception
public void testValidationErrorWhenTooManyAttachments() throws Exception
Exception
public void testUrlEscapingWhenSpecialCharactersInFilename() throws Exception
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |