[jboss-dev-forums] [JBoss AS7 Development] - Re: Embedded AS

Brian Stansberry do-not-reply at jboss.com
Wed Nov 17 10:57:14 EST 2010


Brian Stansberry [http://community.jboss.org/people/bstansberry%40jboss.com] created the discussion

"Re: Embedded AS"

To view the discussion, visit: http://community.jboss.org/message/571621#571621

--------------------------------------------------------------
Is the separate "TestImpl" source file required (e.g. org.jboss.test.as.modular.demos.impl.DemosTestImpl)? It seems like ModularJUnitRunner uses DemosTestCase as the source of the @TestSetup annotation, loads a class from the module it creates, and passes that class to its superclass as the class to test. As long as the module ModularJUnitRunner creates doesn't end up loading that class from the app classloader, it's a separate class. So you shouldn't need a separate source file for the actual test implementation.

I'm going to play a bit and see.
--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/571621#571621]

Start a new discussion in JBoss AS7 Development at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2225]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20101117/52d9a14f/attachment.html 


More information about the jboss-dev-forums mailing list