This content has been marked as final.
Show 2 replies
-
1. Re: Bootstraping Weld Extension in unit test
aslak Oct 28, 2010 4:37 AM (in response to garcimouche)Hmm.. you would have to add it by Package instead. addPackage()
But in the current ShrinkWrap version it relays on there being a Package, and a Package only exists in the ClassLoader if a Class in that package has been loaded. Since this is a lonely class that is not refered to from any where it probably won't be. Next version of ShrinkWrap supports loading Classes from packages without going through the ClassLoader, which should help in thee cases.
-
2. Re: Bootstraping Weld Extension in unit test
jaikiran Oct 28, 2010 4:50 AM (in response to aslak)Maybe this hackish workaround would work for now?
ShrinkWrap.create(JavaArchive.class).addResource("org/blah/blahblah/LoggerProducer.class");