Class TestPlugins
java.lang.Object
com.atlassian.confluence.it.plugin.TestPlugins
Helper class to install plugins that are required for testing.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Pluginstatic final UploadablePluginstatic final Pluginstatic final Pluginstatic final UploadablePluginstatic final UploadablePluginstatic final Pluginstatic final Pluginstatic final Pluginstatic final Pluginstatic final UploadablePluginstatic final Stringstatic final Pluginstatic final List<UploadablePlugin> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidstatic voidenablePluginsDisabledInDefaultTestSetup(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 voidensurePluginsEnabled(PluginHelper pluginHelper, UploadablePlugin... plugins) static voidDeprecated.since 5.10.static voidinstallFuncTestPlugins(PluginHelper pluginHelper) static voidinstallFuncTestPlugins(com.atlassian.confluence.test.rest.api.ConfluenceRestClient restClient) static voidinstallFuncTestRpcPlugin(PluginHelper pluginHelper) Deprecated.Since 5.6.static voidinstallTestPlugins(PluginHelper pluginHelper) Deprecated.Since 5.6.static voidSet up default plugins for use with non-browser acceptance tests.static voidSet up default plugins for use with WebDriver and Selenium tests.
-
Field Details
-
FUNCTEST_RPC_PLUGIN
-
FUNCTEST_REST_PLUGIN
-
SCRIPTSFINISHED_PLUGIN
-
COMPILATION_MONITOR_PLUGIN
-
SCRIPTSFINISHED_PLUGIN_MODULE
- See Also:
-
HELP_TIPS_PLUGIN
-
ONBOARDING_PLUGIN
-
NPS_PLUGIN
-
ENGLISH_US_LANGUAGE_PACK_PLUGIN
-
SUPPORT_TROUBLESHOOTING_PLUGIN
-
BASEURL_PLUGIN
-
DASHBOARD_PLUGIN
-
JQUERY_PLUGIN
-
UPLOADABLE_PLUGINS
-
UNNEEDED_PLUGINS
-
-
Constructor Details
-
TestPlugins
public TestPlugins()
-
-
Method Details
-
setupTestPluginsForWebDriver
Set up default plugins for use with WebDriver and Selenium tests.- Throws:
IOException
-
setupTestPluginsForJWebUnit
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.Since 5.6. UsesetupTestPluginsForJWebUnit(ConfluenceRpc)orsetupTestPluginsForWebDriver(com.atlassian.confluence.it.rpc.ConfluenceRpc)to set up required plugins.- Throws:
IOException
-
installFuncTestPlugins
- Throws:
IOException
-
installFuncTestPlugins
public static void installFuncTestPlugins(com.atlassian.confluence.test.rest.api.ConfluenceRestClient restClient) -
installCrowdProxyIfNeeded
Deprecated.since 5.10. Not needed- Throws:
IOException
-
ensurePluginsEnabled
public static void ensurePluginsEnabled(PluginHelper pluginHelper, UploadablePlugin... plugins) throws IOException - Throws:
IOException
-
disableUnneededPluginsAndModules
-
enablePluginsDisabledInDefaultTestSetup
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.)
-