-
Bug
-
Resolution: Unresolved
-
Major
-
None
-
1.0.0.CR2
-
Windows 64bit, Netbeans 7.07, Glassfish 3.1.1, Maven 3.03, testng 6.3, arquillian resolver 1.1.0-alpha-1
if shrink wrapping in the following way:
@Deployment
public static EnterpriseArchive createTestArchive() {
JavaArchive jar = ShrinkWrap.create(JavaArchive.class,"test.jar").addClasses(
SomeClass1.class,
SomeClass2.class)
.addAsManifestResource(EmptyAsset.INSTANCE, ArchivePaths.create("beans.xml"));
File file = new File("src/test/resources/arquillian-application.xml");
EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "test.ear")
.addAsLibraries(DependencyResolvers.use(MavenDependencyResolver.class)
.artifact("org.demo.test:util:1.0-SNAPSHOT").resolveAs(GenericArchive.class))
.setApplicationXML(file)
.addAsLibraries(jar)
return ear;
}
then the actual test class (the one extending Arquillian.class) is nowhere to be found in
test.ear
.
This means a "no class def found" exception is beeing thrown by the container upon test execution after deployment.