com.atlassian.plugin.classloader
Class TestPluginClassLoader

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by com.atlassian.plugin.classloader.TestPluginClassLoader
All Implemented Interfaces:
junit.framework.Test

public class TestPluginClassLoader
extends junit.framework.TestCase

To make this test pass in your IDE, make sure you run Maven to build the necessary plugins and copy them to the target directory ('mvn package') and when running the tests, set the 'project.version' system property to the current version in the POM. E.g. -Dproject.version=2.1.0-SNAPSHOT


Constructor Summary
TestPluginClassLoader()
           
 
Method Summary
protected  void setUp()
           
protected  void tearDown()
           
 void testPluginClassLoaderDetectsMissingTempDirectory()
           
 void testPluginClassLoaderDoesNotLockTheJarsPermanently()
           
 void testPluginClassLoaderDoesNotSwallowClassesFromADifferentClassLoader()
           
 void testPluginClassLoaderExtractsInnerJarsToSpecifiedDirectory()
           
 void testPluginClassLoaderFindsInnerJars()
           
 void testPluginClassLoaderHandlesDeletedExctractedInnerJars()
           
 void testPluginClassLoaderLoadsClassFromOuterJar()
           
 void testPluginClassLoaderLoadsResourceFromInnerJarIfNotInOuterJar()
           
 void testPluginClassLoaderLoadsResourceFromOuterJarFirst()
           
 void testPluginClassLoaderOverridesContainerClassesWithInnerJarClasses()
           
 
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, failNotEquals, failNotSame, failSame, format
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TestPluginClassLoader

public TestPluginClassLoader()
Method Detail

setUp

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

tearDown

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

testPluginClassLoaderFindsInnerJars

public void testPluginClassLoaderFindsInnerJars()
                                         throws Exception
Throws:
Exception

testPluginClassLoaderLoadsResourceFromOuterJarFirst

public void testPluginClassLoaderLoadsResourceFromOuterJarFirst()
                                                         throws Exception
Throws:
Exception

testPluginClassLoaderLoadsClassFromOuterJar

public void testPluginClassLoaderLoadsClassFromOuterJar()
                                                 throws Exception
Throws:
Exception

testPluginClassLoaderHandlesDeletedExctractedInnerJars

public void testPluginClassLoaderHandlesDeletedExctractedInnerJars()
                                                            throws Exception
Throws:
Exception

testPluginClassLoaderExtractsInnerJarsToSpecifiedDirectory

public void testPluginClassLoaderExtractsInnerJarsToSpecifiedDirectory()
                                                                throws Exception
Throws:
Exception

testPluginClassLoaderDetectsMissingTempDirectory

public void testPluginClassLoaderDetectsMissingTempDirectory()
                                                      throws Exception
Throws:
Exception

testPluginClassLoaderLoadsResourceFromInnerJarIfNotInOuterJar

public void testPluginClassLoaderLoadsResourceFromInnerJarIfNotInOuterJar()
                                                                   throws Exception
Throws:
Exception

testPluginClassLoaderDoesNotSwallowClassesFromADifferentClassLoader

public void testPluginClassLoaderDoesNotSwallowClassesFromADifferentClassLoader()
                                                                         throws Exception
Throws:
Exception

testPluginClassLoaderOverridesContainerClassesWithInnerJarClasses

public void testPluginClassLoaderOverridesContainerClassesWithInnerJarClasses()
                                                                       throws Exception
Throws:
Exception

testPluginClassLoaderDoesNotLockTheJarsPermanently

public void testPluginClassLoaderDoesNotLockTheJarsPermanently()
                                                        throws Exception
Throws:
Exception


Copyright © 2013 Atlassian. All Rights Reserved.