public abstract class AbstractBackupRestoreIntegrationTestBase
extends AbstractInjectableConfluenceSingleContextSpringPersistenceTest
| Modifier and Type | Class and Description |
|---|---|
protected static class |
AbstractBackupRestoreIntegrationTestBase.SpaceDetails |
| Modifier and Type | Field and Description |
|---|---|
protected ConfluenceUser |
admin |
protected ContentService |
apiContentService |
protected static int |
BACKUP_RESTORE_TIMEOUT_MS |
protected ConfluenceBackupRestoreManager |
backupRestoreManager |
protected ImportExportManager |
importExportManager |
protected org.hibernate.SessionFactory |
sessionFactory5 |
protected SiteBackupService |
siteBackupService |
protected SpaceBackupService |
spaceBackupService |
protected SpaceDaoInternal |
spaceDao |
protected SpaceManager |
spaceManager |
protected ItStateManager |
state |
protected static int |
STATE_CHECKING_INTERVAL_MS |
protected File |
tempDir |
protected TestBackupContainerWriter |
testBackupContainerWriter |
protected TestBackupContainerWriterFactoryImpl |
testBackupContainerWriterFactory |
| Constructor and Description |
|---|
AbstractBackupRestoreIntegrationTestBase() |
protected static final int BACKUP_RESTORE_TIMEOUT_MS
protected static final int STATE_CHECKING_INTERVAL_MS
@Inject protected ConfluenceBackupRestoreManager backupRestoreManager
@Inject protected SpaceDaoInternal spaceDao
@Inject protected SpaceManager spaceManager
@Inject protected ContentService apiContentService
@Inject protected ImportExportManager importExportManager
@Inject protected org.hibernate.SessionFactory sessionFactory5
protected ItStateManager state
protected ConfluenceUser admin
protected TestBackupContainerWriter testBackupContainerWriter
protected TestBackupContainerWriterFactoryImpl testBackupContainerWriterFactory
protected SpaceBackupService spaceBackupService
protected SiteBackupService siteBackupService
protected File tempDir
public AbstractBackupRestoreIntegrationTestBase()
public void abstractBefore()
public void initSiteBackupService(boolean useRealWriter)
public void initSpaceBackupService(boolean useRealWriter)
public void clearEverything()
throws IOException
IOExceptionprotected BackupRestoreJob waitUntilJobsChangesState(Long jobId, JobState currentState) throws InterruptedException
InterruptedExceptionprotected long createPage(long spaceId,
String pageTitle)
protected BackupRestoreSettings createDefaultSiteBackupSettings()
protected BackupRestoreSettings createDefaultSpaceBackupSettings(long spaceId)
protected void assertObjectHasProperty(EntityObjectReadyForExport objectReadyForExport, String propertyName, String propertyValue)
protected BackupRestoreJob createSpaceExportJob(long spaceId)
protected BackupRestoreJob createSiteExportJob(boolean exportAttachments)
protected EntityObjectReadyForExport findObjectByTitle(Collection<EntityObjectReadyForExport> entityObjects, String title)
protected Map<String,Object> getPropertiesAsMap(EntityObjectReadyForExport entityObject)
protected Map<String,Object> getReferencedIdsAsMap(EntityObjectReadyForExport entityObject)
Copyright © 2003–2022 Atlassian. All rights reserved.