public class PluginStartupTestResource extends Object
A resource to report plugin and module enablement state, and whether module descriptor's getModule() throws an exception.
Constructor and Description |
---|
PluginStartupTestResource(com.atlassian.plugin.PluginAccessor pluginAccessor) |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
getBrokenModules(String whitelist)
Return a list of all broken plugin modules:
enabled modules where descriptor.getModule() throws an exception other than UnsupportedOperationException
|
javax.ws.rs.core.Response |
getDisabledModules(String whitelist)
Return a list of all disabled plugin modules (only those in enabled plugins).
|
javax.ws.rs.core.Response |
getDisabledPlugins(String whitelist)
Return a list of all disabled plugins.
|
static boolean |
moduleIsSupposedToBeDisabled(com.atlassian.plugin.ModuleDescriptor<?> moduleDescriptor) |
public PluginStartupTestResource(com.atlassian.plugin.PluginAccessor pluginAccessor)
public javax.ws.rs.core.Response getDisabledPlugins(String whitelist)
whitelist
- optional: which whitelist to use:
"acceptance-test"
(PluginStartupAcceptanceTestWhitelist
)"cloud-test"
(PluginStartupCloudTestWhitelist
)public javax.ws.rs.core.Response getDisabledModules(String whitelist)
whitelist
- optional: which whitelist to use:
"acceptance-test"
(PluginStartupAcceptanceTestWhitelist
)"cloud-test"
(PluginStartupCloudTestWhitelist
)public static boolean moduleIsSupposedToBeDisabled(com.atlassian.plugin.ModuleDescriptor<?> moduleDescriptor)
public javax.ws.rs.core.Response getBrokenModules(String whitelist)
whitelist
- optional: which whitelist to use:
"acceptance-test"
(PluginStartupAcceptanceTestWhitelist
)"cloud-test"
(PluginStartupCloudTestWhitelist
)Copyright © 2003–2017 Atlassian. All rights reserved.