com.atlassian.plugin.servlet.util
Class TestClassLoaderStack

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by com.atlassian.plugin.servlet.util.TestClassLoaderStack
All Implemented Interfaces:
junit.framework.Test

public class TestClassLoaderStack
extends junit.framework.TestCase


Nested Class Summary
static class TestClassLoaderStack.MockClassLoader
           
 
Constructor Summary
TestClassLoaderStack()
           
 
Method Summary
 void testPopReturnsPreviousContextClassLoader()
           
 void testPushAndPopHandleNull()
           
 void testThreadClassLoaderIsReplacedAndRestored()
           
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, 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

TestClassLoaderStack

public TestClassLoaderStack()
Method Detail

testThreadClassLoaderIsReplacedAndRestored

public void testThreadClassLoaderIsReplacedAndRestored()
                                                throws java.net.URISyntaxException
Throws:
java.net.URISyntaxException

testPopReturnsPreviousContextClassLoader

public void testPopReturnsPreviousContextClassLoader()
                                              throws java.lang.Exception
Throws:
java.lang.Exception

testPushAndPopHandleNull

public void testPushAndPopHandleNull()
                              throws java.lang.Exception
Throws:
java.lang.Exception


Copyright © 2013 Atlassian. All Rights Reserved.