public class

IntegrationTestGeneralAttachmentMigrator

extends AbstractConfluenceSingleContextSpringPersistenceTest
java.lang.Object
   ↳ AbstractTransactionalDataSourceSpringContextTests
     ↳ com.atlassian.confluence.core.AbstractConfluenceSingleContextSpringPersistenceTest
       ↳ com.atlassian.integrationtest.confluence.pages.persistence.dao.IntegrationTestGeneralAttachmentMigrator

Summary

Constants
String ATTACHMENT_CONTENT_TYPE
String ATTACHMENT_DATA_STRING
String ATTACHMENT_FILE_NAME
String ATTACHMENT_FILE_NAME_NEW
Fields
protected HashMap<AttachmentInputStream> attachmentStreamMap
protected AttachmentDao mockDestinationAttachmentDao
protected AttachmentManager mockDestinationAttachmentManager
protected AttachmentDao mockSourceAttachmentDao
protected AttachmentManager mockSourceAttachmentManager
protected Page page
protected Page pageThree
protected Page pageTwo
protected Space space
protected Space spaceTwo
[Expand]
Inherited Fields
From class com.atlassian.confluence.core.AbstractConfluenceSingleContextSpringPersistenceTest
Public Constructors
IntegrationTestGeneralAttachmentMigrator()
Public Methods
void onSetUp()
void onTearDown()
void testGeneralMigration()
void testGeneralMigrationWithExcludedPages()
void testGeneralMigrationWithIncludedSpaces()
Protected Methods
Attachment createNewAttachment(int i)
byte[] getAttachmentDataStringBytes()
InputStream getNewInputStream()
InputStream getNewInputStream(byte[] bytes)
InputStream getNewInputStream(String str)
void mockSaveAttachment(Attachment attachment, InputStream stream, AttachmentDataDao dataDao, AttachmentDao dao)
[Expand]
Inherited Methods
From class com.atlassian.confluence.core.AbstractConfluenceSingleContextSpringPersistenceTest
From class java.lang.Object

Constants

protected static final String ATTACHMENT_CONTENT_TYPE

Constant Value: "text/plain"

protected static final String ATTACHMENT_DATA_STRING

Constant Value: "fooobar"

protected static final String ATTACHMENT_FILE_NAME

Constant Value: "foo.txt"

protected static final String ATTACHMENT_FILE_NAME_NEW

Constant Value: "foo.txt2"

Fields

protected HashMap<AttachmentInputStream> attachmentStreamMap

protected AttachmentDao mockDestinationAttachmentDao

protected AttachmentManager mockDestinationAttachmentManager

protected AttachmentDao mockSourceAttachmentDao

protected AttachmentManager mockSourceAttachmentManager

protected Page page

protected Page pageThree

protected Page pageTwo

protected Space space

protected Space spaceTwo

Public Constructors

public IntegrationTestGeneralAttachmentMigrator ()

Public Methods

public void onSetUp ()

Throws
Exception

public void onTearDown ()

Throws
Exception

public void testGeneralMigration ()

Throws
IOException

public void testGeneralMigrationWithExcludedPages ()

Throws
IOException

public void testGeneralMigrationWithIncludedSpaces ()

Throws
IOException

Protected Methods

protected Attachment createNewAttachment (int i)

protected byte[] getAttachmentDataStringBytes ()

protected InputStream getNewInputStream ()

protected InputStream getNewInputStream (byte[] bytes)

protected InputStream getNewInputStream (String str)

protected void mockSaveAttachment (Attachment attachment, InputStream stream, AttachmentDataDao dataDao, AttachmentDao dao)