[seam-commits] Seam SVN: r15123 - branches/community/Seam_2_3/jboss-seam-gen/dist/test.
seam-commits at lists.jboss.org
seam-commits at lists.jboss.org
Mon Sep 10 15:24:39 EDT 2012
Author: manaRH
Date: 2012-09-10 15:24:39 -0400 (Mon, 10 Sep 2012)
New Revision: 15123
Modified:
branches/community/Seam_2_3/jboss-seam-gen/dist/test/Deployments.java
branches/community/Seam_2_3/jboss-seam-gen/dist/test/arquillian.xml
branches/community/Seam_2_3/jboss-seam-gen/dist/test/readme.txt
Log:
JBSEAM-5023 more additions
Modified: branches/community/Seam_2_3/jboss-seam-gen/dist/test/Deployments.java
===================================================================
--- branches/community/Seam_2_3/jboss-seam-gen/dist/test/Deployments.java 2012-09-10 19:24:23 UTC (rev 15122)
+++ branches/community/Seam_2_3/jboss-seam-gen/dist/test/Deployments.java 2012-09-10 19:24:39 UTC (rev 15123)
@@ -2,19 +2,23 @@
import java.io.File;
+import org.jboss.shrinkwrap.api.ArchivePath;
import org.jboss.shrinkwrap.api.ShrinkWrap;
+import org.jboss.shrinkwrap.api.asset.StringAsset;
import org.jboss.shrinkwrap.api.importer.ZipImporter;
-import org.jboss.shrinkwrap.api.spec.EnterpriseArchive;
import org.jboss.shrinkwrap.api.spec.WebArchive;
+package org.jboss.seam.example.booking.test;
+
+import java.io.File;
+
+import org.jboss.shrinkwrap.api.ShrinkWrap;
+import org.jboss.shrinkwrap.api.spec.EnterpriseArchive;
+import org.jboss.shrinkwrap.api.importer.ZipImporter;
+
public class Deployments {
- public static EnterpriseArchive defaultEarDeployment() {
- return ShrinkWrap.create(ZipImporter.class, "@projectName at .ear").importFrom(new File("@workspaceHome@/@projectName@/test-build/@projectName at .ear"))
+ public static EnterpriseArchive bookingDeployment() {
+ return ShrinkWrap.create(ZipImporter.class, "${project.name}.${project.type}").importFrom(new File("${workspace.home/dist/${project.name}.${project.type}"))
.as(EnterpriseArchive.class);
}
-
- public static WebArchive defaultWarDeployment() {
- return ShrinkWrap.create(ZipImporter.class, "@projectName at .war").importFrom(new File("@workspaceHome@/@projectName@/test-build/@projectName at .war"))
- .as(WebArchive.class);
- }
}
\ No newline at end of file
Modified: branches/community/Seam_2_3/jboss-seam-gen/dist/test/arquillian.xml
===================================================================
--- branches/community/Seam_2_3/jboss-seam-gen/dist/test/arquillian.xml 2012-09-10 19:24:23 UTC (rev 15122)
+++ branches/community/Seam_2_3/jboss-seam-gen/dist/test/arquillian.xml 2012-09-10 19:24:39 UTC (rev 15123)
@@ -7,14 +7,14 @@
This feature can also be controlled using the system property arquillian.deploymentExportPath -->
<!--
<engine>
- <property name="deploymentExportPath">test-build</property>
+ <property name="deploymentExportPath">target</property>
</engine>
-->
<container qualifier="jboss" default="true">
<configuration>
<property name="javaVmArguments">-Xmx1024m -XX:MaxPermSize=512m</property>
- <property name="jbossHome">@jbossHome@</property>
+ <property name="jbossHome">${jboss.home}</property>
<property name="serverConfig">standalone-full.xml</property>
</configuration>
</container>
Modified: branches/community/Seam_2_3/jboss-seam-gen/dist/test/readme.txt
===================================================================
--- branches/community/Seam_2_3/jboss-seam-gen/dist/test/readme.txt 2012-09-10 19:24:23 UTC (rev 15122)
+++ branches/community/Seam_2_3/jboss-seam-gen/dist/test/readme.txt 2012-09-10 19:24:39 UTC (rev 15123)
@@ -1,29 +1,9 @@
If you want to run tests using the Eclipse Junit plugin, you'll need to add
these jars to the top of your TestNG classpath. Using the Run Dialog, select the
-XML suite to run, and select these entries from the project tree:
+test class to run, and select these entries from the project tree:
-/lib/test/jboss-embedded-all.jar
-/lib/test/hibernate-all.jar
-/lib/test/thirdparty-all.jar
-/lib/jboss-embedded-api.jar
-/lib/jboss-deployers-client-spi.jar
-/lib/jboss-deployers-core-spi.jar
+lib/test/*.jar
+lib/*.jar
-You also need to add the Embedded JBoss bootstrap folder, which you can do by
-clicking on the Advanced... button.
+Seam uses Arquillian in its integration testing.
-/bootstrap
-
-Seam uses JBoss Embedded in its unit and integration testing. This has an
-additional requirement when using JDK 6. Add the following VM argument to the VM
-args tab in the TestNG launch configuration for your suite.
-
--Dsun.lang.ClassLoader.allowArraySyntax=true
-
-Please be sure to use JDK 6 Update 4 or better (>= 1.6.0_04) if you are using
-JDK 6. The Update 4 release upgraded to JAXB 2.1 which removes a problem with
-earlier versions of Sun's JDK 6 which required overriding the JAXB libraries
-using the endorsed directory.
-
-To add tests to your project create a TestNG xml descriptor called *Test.xml
-(e.g. FooTest.xml) next to your test classes and run ant test.
More information about the seam-commits
mailing list