public class ServerStateManager extends Object
Constructor and Description |
---|
ServerStateManager(ConfluenceRpc rpc,
TestData testData) |
Modifier and Type | Method and Description |
---|---|
void |
createTestData()
Deprecated.
Since 5.6 Use
createTestData(boolean) to be explicit about test user creation. |
void |
createTestData(boolean autoCreateTestUsers) |
DirectoryConfiguration |
getDirectoryConfiguration() |
UserManagementHelper |
getUserHelper() |
void |
removeTestData()
Removes all test data, including users, groups, permission, spaces and content.
|
void |
resetTestData()
Deprecated.
since 5.6 Use
resetTestData(boolean) to be explicit about auto-test-user creation. |
void |
resetTestData(boolean autoCreateTestUsers)
Resets all test data, including users, groups, permission, spaces, content, etc, to
a stable state.
|
void |
waitForUpgradeTasks()
We need to wait for plugin upgrade tasks to complete before removing test data as it can break things.
|
public ServerStateManager(ConfluenceRpc rpc, TestData testData)
public UserManagementHelper getUserHelper()
public DirectoryConfiguration getDirectoryConfiguration()
@Deprecated public void resetTestData()
resetTestData(boolean)
to be explicit about auto-test-user creation.public void resetTestData(boolean autoCreateTestUsers)
Called from every test setUp.
public void waitForUpgradeTasks()
public void removeTestData()
If possible, call resetTestData(boolean)
instead to create common data at the same time.
@Deprecated public void createTestData()
createTestData(boolean)
to be explicit about test user creation.public void createTestData(boolean autoCreateTestUsers)
Copyright © 2003–2018 Atlassian. All rights reserved.