com.atlassian.plugin.osgi.factory
Class TestOsgiBundlePlugin
java.lang.Object
com.atlassian.plugin.osgi.factory.TestOsgiBundlePlugin
- Direct Known Subclasses:
- TestOsgiBundlePlugin.Legacy, TestOsgiBundlePlugin.Modern
public abstract class TestOsgiBundlePlugin
- extends Object
Tests for OsgiBundlePlugin.
This is an abstract base class for the common functionality between instances created with the preferred constructor OsgiBundlePlugin.OsgiBundlePlugin(OsgiContainerManager, String, PluginArtifact) and the legacy constructor OsgiBundlePlugin.OsgiBundlePlugin(Bundle, String, PluginArtifact). Static inner classes subclass it to configure for the
actual tests, and to add additional tests.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DESCRIPTION
public static final String DESCRIPTION
- See Also:
- Constant Field Values
NAME
public static final String NAME
- See Also:
- Constant Field Values
SYMBOLIC_NAME
public static final String SYMBOLIC_NAME
VENDOR
public static final String VENDOR
- See Also:
- Constant Field Values
VERSION
public static final String VERSION
- See Also:
- Constant Field Values
PLUGIN_KEY
public static final String PLUGIN_KEY
TestOsgiBundlePlugin
public TestOsgiBundlePlugin()
setUp
public void setUp()
throws Exception
- Throws:
Exception
getOsgiBundlePlugin
protected abstract OsgiBundlePlugin getOsgiBundlePlugin()
constructorConfiguresPluginCorrectly
public void constructorConfiguresPluginCorrectly()
getDateLoadedIsRecent
public void getDateLoadedIsRecent()
getDateInstalledMatchesFileTimestamp
public void getDateInstalledMatchesFileTimestamp()
isUninstallableIsTrue
public void isUninstallableIsTrue()
isDeleteableIsTrue
public void isDeleteableIsTrue()
isDynamicallyLoadedIsTrue
public void isDynamicallyLoadedIsTrue()
loadClassForwardsToBundle
public void loadClassForwardsToBundle()
throws Exception
- Throws:
Exception
getResourceForwardsToBundle
public void getResourceForwardsToBundle()
throws Exception
- Throws:
Exception
getResourceAsStreamForwardsToBundle
public void getResourceAsStreamForwardsToBundle()
throws Exception
- Throws:
Exception
getClassLoaderReturnsClassLoaderThatUsesBundle
public void getClassLoaderReturnsClassLoaderThatUsesBundle()
throws Exception
- Throws:
Exception
getPluginArtifactReturnsPluginArtifact
public void getPluginArtifactReturnsPluginArtifact()
executeBasicLifeCycle
public void executeBasicLifeCycle()
throws Exception
- Throws:
Exception
Copyright © 2015 Atlassian. All rights reserved.