com.atlassian.plugin.loaders
Class TestDirectoryPluginLoader

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by com.atlassian.plugin.loaders.classloading.AbstractTestClassLoader
              extended by com.atlassian.plugin.loaders.TestDirectoryPluginLoader
All Implemented Interfaces:
junit.framework.Test

public class TestDirectoryPluginLoader
extends AbstractTestClassLoader


Field Summary
static String BAD_PLUGIN_JAR
           
 
Fields inherited from class com.atlassian.plugin.loaders.classloading.AbstractTestClassLoader
PADDINGTON_JAR, pluginsDirectory, pluginsTestDir, POOH_JAR
 
Constructor Summary
TestDirectoryPluginLoader()
           
 
Method Summary
 void setUp()
           
 void tearDown()
           
 void testAtlassianPlugin()
           
 void testFoundPlugin()
           
 void testInstallPluginTwice()
           
 void testInvalidPluginHandled()
           
 void testMixedFactories()
           
 void testNoFoundPlugins()
           
 void testPluginWithBadDescriptor()
           
 void testPluginWithModuleDescriptorWithNoKey()
           
 void testRemovePlugin()
           
 void testSupportsAdditionAndRemoval()
           
 void testUnknownPluginArtifact()
           
 
Methods inherited from class com.atlassian.plugin.loaders.classloading.AbstractTestClassLoader
createFillAndCleanTempPluginDirectory, getPluginsDirectory
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

BAD_PLUGIN_JAR

public static final String BAD_PLUGIN_JAR
See Also:
Constant Field Values
Constructor Detail

TestDirectoryPluginLoader

public TestDirectoryPluginLoader()
Method Detail

setUp

public void setUp()
           throws Exception
Overrides:
setUp in class junit.framework.TestCase
Throws:
Exception

tearDown

public void tearDown()
              throws Exception
Overrides:
tearDown in class junit.framework.TestCase
Throws:
Exception

testAtlassianPlugin

public void testAtlassianPlugin()
                         throws Exception
Throws:
Exception

testSupportsAdditionAndRemoval

public void testSupportsAdditionAndRemoval()

testNoFoundPlugins

public void testNoFoundPlugins()
                        throws PluginParseException
Throws:
PluginParseException

testFoundPlugin

public void testFoundPlugin()
                     throws PluginParseException,
                            IOException
Throws:
PluginParseException
IOException

testRemovePlugin

public void testRemovePlugin()
                      throws PluginException,
                             IOException
Throws:
PluginException
IOException

testInvalidPluginHandled

public void testInvalidPluginHandled()
                              throws IOException,
                                     PluginParseException
Throws:
IOException
PluginParseException

testInstallPluginTwice

public void testInstallPluginTwice()
                            throws URISyntaxException,
                                   IOException,
                                   PluginParseException,
                                   InterruptedException
Throws:
URISyntaxException
IOException
PluginParseException
InterruptedException

testMixedFactories

public void testMixedFactories()
                        throws URISyntaxException,
                               IOException,
                               PluginParseException,
                               InterruptedException
Throws:
URISyntaxException
IOException
PluginParseException
InterruptedException

testUnknownPluginArtifact

public void testUnknownPluginArtifact()
                               throws URISyntaxException,
                                      IOException,
                                      PluginParseException,
                                      InterruptedException
Throws:
URISyntaxException
IOException
PluginParseException
InterruptedException

testPluginWithModuleDescriptorWithNoKey

public void testPluginWithModuleDescriptorWithNoKey()
                                             throws Exception,
                                                    IOException,
                                                    PluginParseException,
                                                    InterruptedException
Throws:
Exception
IOException
PluginParseException
InterruptedException

testPluginWithBadDescriptor

public void testPluginWithBadDescriptor()
                                 throws Exception,
                                        IOException,
                                        PluginParseException,
                                        InterruptedException
Throws:
Exception
IOException
PluginParseException
InterruptedException


Copyright © 2011 Atlassian. All Rights Reserved.