|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.confluence.it.export.Importer
public final class Importer
Contains methods for testing XML backup imports via Confluence admin panel.
Constructor Summary | |
---|---|
Importer(net.sourceforge.jwebunit.junit.WebTester webTester,
ConfluenceRpc rpc)
Assumes that the webTester is already on the edit screen. |
Method Summary | |
---|---|
void |
importGlobalBackup(java.io.File backupFile,
TimePeriod importTimeout)
Perform a site import via the web ui. |
void |
importSpaceBackup(java.io.File backupFile,
TimePeriod importTimeout)
Import an xml exported space from the classpath into Confluence via the web ui. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Importer(net.sourceforge.jwebunit.junit.WebTester webTester, ConfluenceRpc rpc)
webTester
- must be logged in as a user with administrative privileges.rpc
- must be logged in as a user with administrative privileges.Method Detail |
---|
public void importSpaceBackup(java.io.File backupFile, TimePeriod importTimeout)
Import an xml exported space from the classpath into Confluence via the web ui. It sets the TextField containing location of the backup file, which must be set in setBackupFile method.
This method relies on being the only import process running at the time,
since it waits for an ImportFinishedEvent
- up to the given timeout amount
backupFile
- to be importedimportTimeout
- maximum amount of time to wait for the import before failing with a RuntimeException.public void importGlobalBackup(java.io.File backupFile, TimePeriod importTimeout)
Perform a site import via the web ui. It sets the TextField containing location of the backup file, which must be set in setBackupFile method. After the import is performed, the base url setting is restored.
This method relies on being the only import process running at the time,
since it waits for an ImportFinishedEvent
- up to the given timeout amount
backupFile
- to be importedimportTimeout
- maximum amount of time to wait for the import before failing with a RuntimeException.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |