[jboss-dev-forums] [JBoss Microcontainer Development] - Re: Testing Deployers with new Reflect + ClassPool

flavia.rainone@jboss.com do-not-reply at jboss.com
Tue Dec 1 12:26:19 EST 2009


"alesj" wrote : Running from IDE I get this for all org.jboss.test.classpool.jbosscl.test.RepositoryClassPoolTestCase tests
  | 
  |   | junit.framework.AssertionFailedError: Should not have been able to load org.jboss.test.classpool.support.excluded.a.A
  |   | 	at org.jboss.test.classpool.support.TestScenario.assertCannotLoaderSupportClasses(TestScenario.java:260)
  |   | 	at org.jboss.test.classpool.support.TestScenario.destroyLoaders(TestScenario.java:118)
  |   | 	at org.jboss.test.classpool.jbosscl.test.JBossClClassPoolTest.tearDown(JBossClClassPoolTest.java:160)
  |   | 	at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:40)
  |   | 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  |   | 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  |   | 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  |   | 	at com.intellij.rt.execution.application.AppMain.main(AppMain.java:90)

That error is fully expected as the classes belonging to the excluded package must be excluded from the classpath during test execution :-)

What about the NPE I couldn't reproduce in my computer?

View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4268352#4268352

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4268352



More information about the jboss-dev-forums mailing list