|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.confluence.it.plugin.WebTestPluginHelper
public class WebTestPluginHelper
Uses its own WebTester to perform and test administrative actions on a server with a given base url. The possession of the WebTester implies that the Dialog between this helper and the server is separate to any other conversation, so the logged in user and response (ie currently viewed page) are also separate.
| Constructor Summary | |
|---|---|
WebTestPluginHelper(String baseUrl)
Opens a separate dialog with the server for the purpose of installing plugins. |
|
WebTestPluginHelper(String baseUrl,
User initialUser)
Opens a separate dialog with the server for the purpose of installing plugins. |
|
| Method Summary | |
|---|---|
void |
disablePlugin(Plugin plugin)
Disable the plugin using its display name. |
void |
disablePluginModule(Plugin plugin,
String moduleKey)
Disable the plugin module using the plugin's key and the module's key. |
void |
enablePlugin(Plugin plugin)
Enable the plugin. |
void |
enablePluginModule(Plugin plugin,
String moduleKey)
|
void |
installPlugin(UploadablePlugin plugin)
Install the plugin as the currently logged in User. |
void |
installPluginIfNotInstalled(UploadablePlugin plugin)
Equivalent of calling PluginHelper.isPluginInstalled(Plugin) and PluginHelper.installPlugin(UploadablePlugin). |
boolean |
isPluginEnabled(Plugin plugin)
Returns true if the given plugin is currently enabled, otherwise false. |
boolean |
isPluginInstalled(Plugin plugin)
Returns true if the given plugin is currently installed, otherwise false. |
boolean |
isPluginInstalled(String pluginName)
|
boolean |
isPluginModuleEnabled(Plugin plugin,
String html)
|
void |
loginIfUserIsNew(User user)
|
void |
uninstallPlugin(Plugin plugin)
Uninstall the plugin as the currently logged in User. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WebTestPluginHelper(String baseUrl)
baseUrl - base URL of the Confluence instance to talk to
public WebTestPluginHelper(String baseUrl,
User initialUser)
baseUrl - base URL of the Confluence instance to talk toinitialUser - the user to login as initially| Method Detail |
|---|
public void loginIfUserIsNew(User user)
public void installPluginIfNotInstalled(UploadablePlugin plugin)
throws FileNotFoundException
PluginHelperPluginHelper.isPluginInstalled(Plugin) and PluginHelper.installPlugin(UploadablePlugin).
installPluginIfNotInstalled in interface PluginHelperFileNotFoundException
public void installPlugin(UploadablePlugin plugin)
throws FileNotFoundException
PluginHelper
installPlugin in interface PluginHelperFileNotFoundException - if the plugin file does not exist locallyPluginHelper.isPluginInstalled(Plugin)public void uninstallPlugin(Plugin plugin)
PluginHelper
uninstallPlugin in interface PluginHelperPluginHelper.isPluginInstalled(Plugin)public boolean isPluginInstalled(Plugin plugin)
PluginHelper
isPluginInstalled in interface PluginHelperpublic boolean isPluginInstalled(String pluginName)
public void enablePlugin(Plugin plugin)
PluginHelper
enablePlugin in interface PluginHelperPluginHelper.isPluginEnabled(Plugin)
public void enablePluginModule(Plugin plugin,
String moduleKey)
enablePluginModule in interface PluginHelper
public void disablePluginModule(Plugin plugin,
String moduleKey)
disablePluginModule in interface PluginHelperpublic void disablePlugin(Plugin plugin)
disablePlugin in interface PluginHelperPluginHelper.isPluginEnabled(Plugin)public boolean isPluginEnabled(Plugin plugin)
PluginHelper
isPluginEnabled in interface PluginHelper
public boolean isPluginModuleEnabled(Plugin plugin,
String html)
isPluginModuleEnabled in interface PluginHelper
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||