|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.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)
|
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 topublic WebTestPluginHelper(String baseUrl, User initialUser)
baseUrl
- base URL of the Confluence instance to talk toinitialUser
- the user to login as initiallyMethod Detail |
---|
public void loginIfUserIsNew(User user)
public void installPluginIfNotInstalled(UploadablePlugin plugin) throws FileNotFoundException
PluginHelper
PluginHelper.isPluginInstalled(Plugin)
and PluginHelper.installPlugin(UploadablePlugin)
.
installPluginIfNotInstalled
in interface PluginHelper
FileNotFoundException
public void installPlugin(UploadablePlugin plugin) throws FileNotFoundException
PluginHelper
installPlugin
in interface PluginHelper
FileNotFoundException
- if the plugin file does not exist locallyPluginHelper.isPluginInstalled(Plugin)
public void uninstallPlugin(Plugin plugin)
PluginHelper
uninstallPlugin
in interface PluginHelper
PluginHelper.isPluginInstalled(Plugin)
public boolean isPluginInstalled(Plugin plugin)
PluginHelper
isPluginInstalled
in interface PluginHelper
public boolean isPluginInstalled(String pluginName)
public void enablePlugin(Plugin plugin)
PluginHelper
enablePlugin
in interface PluginHelper
PluginHelper.isPluginEnabled(Plugin)
public void enablePluginModule(Plugin plugin, String moduleKey)
enablePluginModule
in interface PluginHelper
public void disablePluginModule(Plugin plugin, String moduleKey)
disablePluginModule
in interface PluginHelper
public void disablePlugin(Plugin plugin)
disablePlugin
in interface PluginHelper
PluginHelper.isPluginEnabled(Plugin)
public boolean isPluginEnabled(Plugin plugin)
PluginHelper
isPluginEnabled
in interface PluginHelper
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |