public class PluginsImpl extends AbstractFuncTestUtil implements Plugins
environmentData, FS, locators, logger, logIndentLevel, tester
Constructor and Description |
---|
PluginsImpl(net.sourceforge.jwebunit.WebTester tester,
JIRAEnvironmentData environmentData,
int logIndentLevel,
Navigation navigation,
Administration administration,
LocatorFactory locators) |
Modifier and Type | Method and Description |
---|---|
boolean |
canDisablePlugin(String pluginKey)
Is it possible to disable a plugin.
|
boolean |
canDisablePluginModule(String pluginKey,
String completeModuleKey)
Is it possible to disable a module of a plugin.
|
void |
disablePlugin(String pluginKey)
Tries to disable a plugin (so long as it is installed).
|
void |
disablePluginModule(String pluginKey,
String completeModuleKey)
Tries to disable a module within a plugin.
|
void |
enablePlugin(String pluginKey)
Tries to enable a plugin (so long as it is installed).
|
void |
enablePluginModule(String pluginKey,
String completeModuleKey)
Tries to enable a module within a plugin.
|
com.meterware.httpunit.WebResponse |
GET(String url) |
com.meterware.httpunit.WebResponse |
GET(String url,
Map<String,String> headers) |
protected String |
getBaseUrlPlus(String... paths) |
boolean |
isPluginDisabled(String pluginKey)
Is a plugin disabled.
|
boolean |
isPluginEnabled(String pluginKey)
Is a plugin enabled.
|
boolean |
isPluginInstalled(String pluginKey)
Checks if the plugin is found in the UPM.
|
boolean |
isPluginModuleDisabled(String pluginKey,
String completeModuleKey)
Is a module of a plugin disabled.
|
boolean |
isPluginModuleEnabled(String pluginKey,
String completeModuleKey)
Is a module of a plugin enabled.
|
com.meterware.httpunit.WebResponse |
PUT(String url,
JSONObject json,
String mediaType) |
com.meterware.httpunit.WebResponse |
PUT(String url,
String postBody,
String mediaType) |
ReferenceDependentPlugin |
referenceDependentPlugin()
Gets an instance of the reference dependent plugin.
|
ReferenceLanguagePack |
referenceLanguagePack()
Gets an instance of the reference language pack plugin.
|
ReferencePlugin |
referencePlugin()
Gets an instance of the reference plugin.
|
childLogIndentLevel, getAssertions, getEnvironmentData, getFuncTestHelperFactory, getLogger, log, log, navigation, submitAtPage
public PluginsImpl(net.sourceforge.jwebunit.WebTester tester, JIRAEnvironmentData environmentData, int logIndentLevel, Navigation navigation, Administration administration, LocatorFactory locators)
public boolean isPluginInstalled(String pluginKey)
Plugins
isPluginInstalled
in interface Plugins
pluginKey
- - the key for the plugin eg. com.atlassian.examplePluginpublic ReferencePlugin referencePlugin()
Plugins
referencePlugin
in interface Plugins
public ReferenceDependentPlugin referenceDependentPlugin()
Plugins
referenceDependentPlugin
in interface Plugins
public ReferenceLanguagePack referenceLanguagePack()
Plugins
referenceLanguagePack
in interface Plugins
public void disablePlugin(String pluginKey)
Plugins
disablePlugin
in interface Plugins
pluginKey
- - the key for the plugin eg. com.atlassian.examplePluginpublic void enablePlugin(String pluginKey)
Plugins
enablePlugin
in interface Plugins
pluginKey
- - the key for the plugin eg. com.atlassian.examplePluginpublic void disablePluginModule(String pluginKey, String completeModuleKey)
Plugins
disablePluginModule
in interface Plugins
pluginKey
- - the key for the plugin eg. com.atlassian.examplePlugincompleteModuleKey
- - the key for the module eg. com.atlassian.examplePlugin:exampleModulepublic void enablePluginModule(String pluginKey, String completeModuleKey)
Plugins
enablePluginModule
in interface Plugins
pluginKey
- - the key for the plugin eg. com.atlassian.examplePlugincompleteModuleKey
- - the key for the module eg. com.atlassian.examplePlugin:exampleModulepublic boolean canDisablePluginModule(String pluginKey, String completeModuleKey)
Plugins
canDisablePluginModule
in interface Plugins
pluginKey
- - the key for the plugin eg. com.atlassian.examplePlugincompleteModuleKey
- - the key for the module eg. com.atlassian.examplePlugin:exampleModulepublic boolean canDisablePlugin(String pluginKey)
Plugins
canDisablePlugin
in interface Plugins
pluginKey
- - the key for the plugin eg. com.atlassian.examplePluginpublic boolean isPluginEnabled(String pluginKey)
Plugins
isPluginEnabled
in interface Plugins
pluginKey
- - the key of the plugin to check eg. com.atlassian.examplePluginpublic boolean isPluginDisabled(String pluginKey)
Plugins
isPluginDisabled
in interface Plugins
pluginKey
- - the key of the plugin to check eg. com.atlassian.examplePluginpublic boolean isPluginModuleEnabled(String pluginKey, String completeModuleKey)
Plugins
isPluginModuleEnabled
in interface Plugins
pluginKey
- - the key for the plugin eg. com.atlassian.examplePlugincompleteModuleKey
- - the key for the module eg. com.atlassian.examplePlugin:exampleModulepublic boolean isPluginModuleDisabled(String pluginKey, String completeModuleKey)
Plugins
isPluginModuleDisabled
in interface Plugins
pluginKey
- - the key of the plugin eg. com.atlassian.examplePlugincompleteModuleKey
- - the key of the module to check eg. com.atlassian.examplePlugin:exampleModulepublic com.meterware.httpunit.WebResponse PUT(String url, JSONObject json, String mediaType) throws IOException, SAXException
IOException
SAXException
public com.meterware.httpunit.WebResponse PUT(String url, String postBody, String mediaType) throws IOException, SAXException
IOException
SAXException
public com.meterware.httpunit.WebResponse GET(String url) throws IOException, SAXException
IOException
SAXException
public com.meterware.httpunit.WebResponse GET(String url, Map<String,String> headers) throws IOException, SAXException
IOException
SAXException
Copyright © 2002-2015 Atlassian. All Rights Reserved.