com.atlassian.plugin.servlet
Class TestDelegatingPluginServlet

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

public class TestDelegatingPluginServlet
extends junit.framework.TestCase


Constructor Summary
TestDelegatingPluginServlet()
           
 
Method Summary
 void setUp()
           
 void testInitCalledWithPluginClassLoaderAsThreadClassLoader()
          Test to make sure the plugin class loader is set for the thread context class loader when init is called.
 void testServiceCalledWithPluginClassLoaderAsThreadClassLoader()
          Test to make sure the plugin class loader is set for the thread context class loader when service is called.
 void testServiceCalledWithWrappedRequest()
          Test to make sure the servlet is called with our request wrapper.
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TestDelegatingPluginServlet

public TestDelegatingPluginServlet()
Method Detail

setUp

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

testInitCalledWithPluginClassLoaderAsThreadClassLoader

public void testInitCalledWithPluginClassLoaderAsThreadClassLoader()
                                                            throws Exception
Test to make sure the plugin class loader is set for the thread context class loader when init is called.

Throws:
Exception - on test error

testServiceCalledWithPluginClassLoaderAsThreadClassLoader

public void testServiceCalledWithPluginClassLoaderAsThreadClassLoader()
                                                               throws Exception
Test to make sure the plugin class loader is set for the thread context class loader when service is called.

Throws:
Exception - on test error

testServiceCalledWithWrappedRequest

public void testServiceCalledWithWrappedRequest()
                                         throws Exception
Test to make sure the servlet is called with our request wrapper.

Throws:
Exception - on test error


Copyright © 2011 Atlassian. All Rights Reserved.