Author: dan.j.allen
Date: 2010-11-24 14:18:05 -0500 (Wed, 24 Nov 2010)
New Revision: 7097
Modified:
archetypes/javaee6-webapp/trunk/src/test/java/com/mycompany/test/MemberRegistrationTest.java
Log:
update to latest shrinkwrap api
simplify library imports
Modified:
archetypes/javaee6-webapp/trunk/src/test/java/com/mycompany/test/MemberRegistrationTest.java
===================================================================
---
archetypes/javaee6-webapp/trunk/src/test/java/com/mycompany/test/MemberRegistrationTest.java 2010-11-24
19:17:33 UTC (rev 7096)
+++
archetypes/javaee6-webapp/trunk/src/test/java/com/mycompany/test/MemberRegistrationTest.java 2010-11-24
19:18:05 UTC (rev 7097)
@@ -13,7 +13,7 @@
import org.jboss.shrinkwrap.api.ShrinkWrap;
import org.jboss.shrinkwrap.api.Archive;
import org.jboss.shrinkwrap.api.spec.WebArchive;
-import org.jboss.shrinkwrap.api.asset.ByteArrayAsset;
+import org.jboss.shrinkwrap.api.asset.EmptyAsset;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.slf4j.Logger;
@@ -27,12 +27,12 @@
return ShrinkWrap.create(WebArchive.class, "test.war")
.addClasses(Member.class, MemberRegistration.class, MemberRepository.class,
MemberRepositoryProducer.class)
// SLF4J libraries required only if not available on the container classpath
-// .addLibraries(
-// MavenArtifactResolver.resolve("org.slf4j:slf4j-api:1.5.10"),
-// MavenArtifactResolver.resolve("org.slf4j:slf4j-jdk14:1.5.10")
-// )
- .addWebResource("test-persistence.xml",
"classes/META-INF/persistence.xml")
- .addWebResource(new ByteArrayAsset(new byte[0]), "beans.xml");
+// .addLibraries(MavenArtifactResolver.resolve(
+// "org.slf4j:slf4j-api:1.5.10",
+// "org.slf4j:slf4j-jdk14:1.5.10"
+// ))
+ .addManifestResource("test-persistence.xml",
"persistence.xml")
+ .addWebResource(EmptyAsset.INSTANCE, "beans.xml");
}
@Inject MemberRegistration memberRegistration;
Show replies by date