org.jboss.test.jbossmx.implementation.server
Class ContextCLTestCase

java.lang.Object
  extended byTestCase
      extended byorg.jboss.test.JBossTestCase (src) 
          extended byorg.jboss.test.jbossmx.implementation.TestCase (src) 
              extended byorg.jboss.test.jbossmx.implementation.server.ContextCLTestCase

public class ContextCLTestCase
extends TestCase (src)

Test of the mbean operation invocation thread context class loader. This test case simulates the problem originally seen in Bug#516649. Reproducing the steps here requires a number of contrived steps including simulated reloading of the mbean from different jars and the loading of the TestData class by the main MBeanClassLoader using Class.forName(). These are the actions that occur when reloading a sar that contains an ejb-jar.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.jboss.test.JBossTestCase (src)
delegate, deploymentException, log
 
Constructor Summary
ContextCLTestCase(java.lang.String name)
           
 
Method Summary
 void createTestDataJar()
          This creates two mbean deployment jars, testdata.jar and testdata1.jar.
static void main(java.lang.String[] args)
          Allow the test case to run standalone
static Test suite()
          Setup the test suite.
 void testInvokeNeedingTCL()
           
 
Methods inherited from class org.jboss.test.jbossmx.implementation.TestCase (src)
testServerFound
 
Methods inherited from class org.jboss.test.JBossTestCase (src)
deploy, flushAuthCache, flushAuthCache, getBeanCount, getDeployerName, getDeploySetup, getDeployURL, getInitialContext, getIterationCount, getJndiInitFactory, getJndiURL, getLog, getResourceURL, getServer, getServerHost, getThreadCount, initDelegate, invoke, restartDBPool, sleep, undeploy
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContextCLTestCase

public ContextCLTestCase(java.lang.String name)
Method Detail

testInvokeNeedingTCL

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

createTestDataJar

public void createTestDataJar()
                       throws java.lang.Exception
This creates two mbean deployment jars, testdata.jar and testdata1.jar. A redeployment is simulated by loading

Throws:
java.lang.Exception - Description of Exception

suite

public static Test suite()
Setup the test suite.


main

public static void main(java.lang.String[] args)
Allow the test case to run standalone