[jboss-dev-forums] [JBoss Microcontainer Development] - Re: Testing Deployers with new Reflect + ClassPool
alesj
do-not-reply at jboss.com
Fri Nov 6 11:15:36 EST 2009
"flavia.rainone at jboss.com" wrote : "alesj" wrote : I guess this calls for a test that would create a CL from -beans.xml,
| | and see if the Classpools still work.
| | Flavia, will you create one or should I, and you just fix the issues if they are present?
| |
| You can go ahead and create one, as I think this will be faster.
This is done now - see TypeInfoTest and ClassPoolTestCase.
I've left a TODO in ClassPoolTestCase for you:
| try
| {
| Object anys = assertBean("AnyServlet", Object.class);
| Class<?> anysClass = anys.getClass();
| ClassLoader anysCL = anysClass.getClassLoader();
|
| DeploymentUnit du = getMainDeployerStructure().getDeploymentUnit(deployment.getName(), true);
| ClassLoader cl = getClassLoader(du);
|
| assertNotSame(cl, anysCL);
|
| // TODO - Flavia, apply ClassPool tests
| }
|
And once you delete assert(Not)Equals in JavassistTypeInfoTestCase,
we'll see how this works with your patch.
Currently both types - introspection and javassist - work for this test.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4264359#4264359
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4264359
More information about the jboss-dev-forums
mailing list