com.atlassian.plugin.osgi.factory
Class TestOsgiBundlePlugin

java.lang.Object
  extended by 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.


Nested Class Summary
static class TestOsgiBundlePlugin.Legacy
           
static class TestOsgiBundlePlugin.Modern
           
 
Field Summary
static String DESCRIPTION
           
static String NAME
           
static String PLUGIN_KEY
           
static String SYMBOLIC_NAME
           
static String VENDOR
           
static String VERSION
           
 
Constructor Summary
TestOsgiBundlePlugin()
           
 
Method Summary
 void constructorConfiguresPluginCorrectly()
           
 void executeBasicLifeCycle()
           
 void getClassLoaderReturnsClassLoaderThatUsesBundle()
           
 void getDateInstalledMatchesFileTimestamp()
           
 void getDateLoadedIsRecent()
           
protected abstract  OsgiBundlePlugin getOsgiBundlePlugin()
           
 void getPluginArtifactReturnsPluginArtifact()
           
 void getResourceAsStreamForwardsToBundle()
           
 void getResourceForwardsToBundle()
           
 void isDeleteableIsTrue()
           
 void isDynamicallyLoadedIsTrue()
           
 void isUninstallableIsTrue()
           
 void loadClassForwardsToBundle()
           
 void setUp()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

TestOsgiBundlePlugin

public TestOsgiBundlePlugin()
Method Detail

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.