com.atlassian.plugin.classloader
Class TestPluginClassLoader
java.lang.Object
junit.framework.Assert
junit.framework.TestCase
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
| 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 |
TestPluginClassLoader
public TestPluginClassLoader()
setUp
protected void setUp()
throws java.lang.Exception
- Overrides:
setUp in class junit.framework.TestCase
- Throws:
java.lang.Exception
tearDown
protected void tearDown()
throws java.lang.Exception
- Overrides:
tearDown in class junit.framework.TestCase
- Throws:
java.lang.Exception
testPluginClassLoaderFindsInnerJars
public void testPluginClassLoaderFindsInnerJars()
throws java.lang.Exception
- Throws:
java.lang.Exception
testPluginClassLoaderLoadsResourceFromOuterJarFirst
public void testPluginClassLoaderLoadsResourceFromOuterJarFirst()
throws java.lang.Exception
- Throws:
java.lang.Exception
testPluginClassLoaderLoadsClassFromOuterJar
public void testPluginClassLoaderLoadsClassFromOuterJar()
throws java.lang.Exception
- Throws:
java.lang.Exception
testPluginClassLoaderHandlesDeletedExctractedInnerJars
public void testPluginClassLoaderHandlesDeletedExctractedInnerJars()
throws java.lang.Exception
- Throws:
java.lang.Exception
testPluginClassLoaderExtractsInnerJarsToSpecifiedDirectory
public void testPluginClassLoaderExtractsInnerJarsToSpecifiedDirectory()
throws java.lang.Exception
- Throws:
java.lang.Exception
testPluginClassLoaderDetectsMissingTempDirectory
public void testPluginClassLoaderDetectsMissingTempDirectory()
throws java.lang.Exception
- Throws:
java.lang.Exception
testPluginClassLoaderLoadsResourceFromInnerJarIfNotInOuterJar
public void testPluginClassLoaderLoadsResourceFromInnerJarIfNotInOuterJar()
throws java.lang.Exception
- Throws:
java.lang.Exception
testPluginClassLoaderDoesNotSwallowClassesFromADifferentClassLoader
public void testPluginClassLoaderDoesNotSwallowClassesFromADifferentClassLoader()
throws java.lang.Exception
- Throws:
java.lang.Exception
testPluginClassLoaderOverridesContainerClassesWithInnerJarClasses
public void testPluginClassLoaderOverridesContainerClassesWithInnerJarClasses()
throws java.lang.Exception
- Throws:
java.lang.Exception
testPluginClassLoaderDoesNotLockTheJarsPermanently
public void testPluginClassLoaderDoesNotLockTheJarsPermanently()
throws java.lang.Exception
- Throws:
java.lang.Exception
Copyright © 2010 Atlassian. All Rights Reserved.