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

alesj do-not-reply at jboss.com
Tue Dec 1 13:50:46 EST 2009


"flavia.rainone at jboss.com" wrote : 
  | That error is fully expected as the classes belonging to the excluded package must be excluded from the classpath during test execution :-)
  | 
I guess you now do this explicitly in maven?

You should do it programatically,
the same way we do it in our CL, Deployers, Weld, ... tests.

Check CL tests, where we create new ClassLoaderSystem, set parent policy, filters, ...
This way we will be able to run them in any env - IDE, mvn, ant, ivy, ...

"flavia.rainone at jboss.com" wrote : 
  | What about the NPE I couldn't reproduce in my computer?
  | 
This was in attempt to get to the bottom of the NPE, debuging via IDE. ;-)

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

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



More information about the jboss-dev-forums mailing list