com.atlassian.confluence.it
Class ServerStateManager
java.lang.Object
com.atlassian.confluence.it.ServerStateManager
public class ServerStateManager
- extends java.lang.Object
High-level manager for manipulating server state before and after acceptance tests.
- Since:
- v4.2
Method Summary |
void |
createTestData()
|
DirectoryConfiguration |
getDirectoryConfiguration()
|
UserManagementHelper |
getUserHelper()
|
void |
removeTestData()
Removes all test data, including users, groups, permission, spaces and content. |
void |
resetTestData()
Resets all test data, including users, groups, permission, spaces, content, etc, to
a stable state. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ServerStateManager
public ServerStateManager(ConfluenceRpc rpc,
TestData testData)
getUserHelper
public UserManagementHelper getUserHelper()
getDirectoryConfiguration
public DirectoryConfiguration getDirectoryConfiguration()
resetTestData
public void resetTestData()
- Resets all test data, including users, groups, permission, spaces, content, etc, to
a stable state.
Called from every test setUp.
removeTestData
public void removeTestData()
- Removes all test data, including users, groups, permission, spaces and content.
If possible, call
resetTestData()
instead to create common data at the same time.
createTestData
public void createTestData()
Copyright © 2003-2013 Atlassian. All Rights Reserved.