Class TestPlugins
- java.lang.Object
-
- com.atlassian.confluence.it.plugin.TestPlugins
-
public class TestPlugins extends Object
Helper class to install plugins that are required for testing.
-
-
Field Summary
Fields Modifier and Type Field Description static Plugin
BASEURL_PLUGIN
static UploadablePlugin
COMPILATION_MONITOR_PLUGIN
static Plugin
DASHBOARD_PLUGIN
static UploadablePlugin
FUNCTEST_REST_PLUGIN
static UploadablePlugin
FUNCTEST_RPC_PLUGIN
static Plugin
HELP_TIPS_PLUGIN
static Plugin
JQUERY_PLUGIN
static Plugin
NPS_PLUGIN
static Plugin
ONBOARDING_PLUGIN
static UploadablePlugin
SCRIPTSFINISHED_PLUGIN
static String
SCRIPTSFINISHED_PLUGIN_MODULE
static Plugin
SUPPORT_TROUBLESHOOTING_PLUGIN
static List<UploadablePlugin>
UPLOADABLE_PLUGINS
-
Constructor Summary
Constructors Constructor Description TestPlugins()
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static void
disableUnneededPluginsAndModules(ConfluenceRpc rpc)
static void
enablePluginsDisabledInDefaultTestSetup(ConfluenceRpc rpc, org.slf4j.Logger log)
Reverse the things that are disabled by com.atlassian.confluence.it.plugin.TestPlugins and TenantSetup, so that tests can check that they're not broken.static void
ensurePluginsEnabled(PluginHelper pluginHelper, UploadablePlugin... plugins)
static void
installCrowdProxyIfNeeded(ConfluenceRpc rpc)
Deprecated.since 5.10.static void
installFuncTestPlugins(PluginHelper pluginHelper)
static void
installFuncTestPlugins(com.atlassian.confluence.test.rest.api.ConfluenceRestClient restClient)
static void
installFuncTestRpcPlugin(PluginHelper pluginHelper)
Deprecated.Since 5.6.static void
installTestPlugins(PluginHelper pluginHelper)
Deprecated.Since 5.6.static void
setupTestPluginsForJWebUnit(ConfluenceRpc rpc)
Set up default plugins for use with non-browser acceptance tests.static void
setupTestPluginsForWebDriver(ConfluenceRpc rpc)
Set up default plugins for use with WebDriver and Selenium tests.
-
-
-
Field Detail
-
FUNCTEST_RPC_PLUGIN
public static final UploadablePlugin FUNCTEST_RPC_PLUGIN
-
FUNCTEST_REST_PLUGIN
public static final UploadablePlugin FUNCTEST_REST_PLUGIN
-
SCRIPTSFINISHED_PLUGIN
public static final UploadablePlugin SCRIPTSFINISHED_PLUGIN
-
COMPILATION_MONITOR_PLUGIN
public static final UploadablePlugin COMPILATION_MONITOR_PLUGIN
-
SCRIPTSFINISHED_PLUGIN_MODULE
public static final String SCRIPTSFINISHED_PLUGIN_MODULE
- See Also:
- Constant Field Values
-
HELP_TIPS_PLUGIN
public static final Plugin HELP_TIPS_PLUGIN
-
ONBOARDING_PLUGIN
public static final Plugin ONBOARDING_PLUGIN
-
NPS_PLUGIN
public static final Plugin NPS_PLUGIN
-
SUPPORT_TROUBLESHOOTING_PLUGIN
public static final Plugin SUPPORT_TROUBLESHOOTING_PLUGIN
-
BASEURL_PLUGIN
public static final Plugin BASEURL_PLUGIN
-
DASHBOARD_PLUGIN
public static final Plugin DASHBOARD_PLUGIN
-
JQUERY_PLUGIN
public static final Plugin JQUERY_PLUGIN
-
UPLOADABLE_PLUGINS
public static final List<UploadablePlugin> UPLOADABLE_PLUGINS
-
-
Method Detail
-
setupTestPluginsForWebDriver
public static void setupTestPluginsForWebDriver(ConfluenceRpc rpc) throws IOException
Set up default plugins for use with WebDriver and Selenium tests.- Throws:
IOException
-
setupTestPluginsForJWebUnit
public static void setupTestPluginsForJWebUnit(ConfluenceRpc rpc) throws IOException
Set up default plugins for use with non-browser acceptance tests.- Throws:
IOException
-
installFuncTestRpcPlugin
@Deprecated public static void installFuncTestRpcPlugin(PluginHelper pluginHelper) throws IOException
Deprecated.Since 5.6. UsesetupTestPluginsForJWebUnit(ConfluenceRpc)
to set up required plugins.- Throws:
IOException
-
installTestPlugins
@Deprecated public static void installTestPlugins(PluginHelper pluginHelper) throws IOException
Deprecated.Since 5.6. UsesetupTestPluginsForJWebUnit(ConfluenceRpc)
orsetupTestPluginsForWebDriver(com.atlassian.confluence.it.rpc.ConfluenceRpc)
to set up required plugins.- Throws:
IOException
-
installFuncTestPlugins
public static void installFuncTestPlugins(PluginHelper pluginHelper) throws IOException
- Throws:
IOException
-
installFuncTestPlugins
public static void installFuncTestPlugins(com.atlassian.confluence.test.rest.api.ConfluenceRestClient restClient)
-
installCrowdProxyIfNeeded
@Deprecated public static void installCrowdProxyIfNeeded(ConfluenceRpc rpc) throws IOException
Deprecated.since 5.10. Not needed- Throws:
IOException
-
ensurePluginsEnabled
public static void ensurePluginsEnabled(PluginHelper pluginHelper, UploadablePlugin... plugins) throws IOException
- Throws:
IOException
-
disableUnneededPluginsAndModules
public static void disableUnneededPluginsAndModules(ConfluenceRpc rpc)
-
enablePluginsDisabledInDefaultTestSetup
public static void enablePluginsDisabledInDefaultTestSetup(ConfluenceRpc rpc, org.slf4j.Logger log)
Reverse the things that are disabled by com.atlassian.confluence.it.plugin.TestPlugins and TenantSetup, so that tests can check that they're not broken. (They should be disabled again afterwards.)
-
-