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

Kabir Khan do-not-reply at jboss.com
Fri Nov 19 09:48:58 EST 2010


Kabir Khan [http://community.jboss.org/people/kabir.khan%40jboss.com] created the discussion

"Re: Embedded AS"

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

--------------------------------------------------------------
I have made the jars exposed on the system classloader configurable, like this

@TestSetup(

...
        classpathFilter=@ClasspathFilter(
                classes = {Blah.class}
                maven= {
                   @MavenFilter(groupId="org.jboss.shrinkwrap", artifactId="shrinkwrap-api"),
                   @MavenFilter(groupId="org.jboss.shrinkwrap", artifactId="shrinkwrap-impl-base")})
)
@RunWith(ModularJunitTestRunner.class)
public class DemosTestCase  {

One issue that occurred to me after doing this is that the the SystemLocalLoader only gets initialized once per jvm, so the first test to set this wins. Maybe this should happen at a higher level for the whole project? Maybe in a /system-classpath.properties or a package annotation for test's root package?
--------------------------------------------------------------

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

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/20101119/4ddda541/attachment.html 


More information about the jboss-dev-forums mailing list