Author: swd847
Date: 2010-09-02 07:29:55 -0400 (Thu, 02 Sep 2010)
New Revision: 13701
Modified:
modules/persistence/trunk/impl/pom.xml
modules/persistence/trunk/impl/src/test/resources/arquillian.xml
Log:
use the jboss managed profile by default
Modified: modules/persistence/trunk/impl/pom.xml
===================================================================
--- modules/persistence/trunk/impl/pom.xml 2010-09-02 11:18:41 UTC (rev 13700)
+++ modules/persistence/trunk/impl/pom.xml 2010-09-02 11:29:55 UTC (rev 13701)
@@ -157,15 +157,59 @@
<activation>
<activeByDefault>true</activeByDefault>
</activation>
+ <dependencies>
+ <dependency>
+ <groupId>org.jboss.arquillian.container</groupId>
+ <artifactId>arquillian-jbossas-managed-6</artifactId>
+ <version>${arquillian.version}</version>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.jbossas</groupId>
+ <artifactId>jboss-server-manager</artifactId>
+ <version>1.0.3.GA</version>
+ </dependency>
+
+ <!-- need for org.jnp.interfaces.NamingContextFactory -->
+ <dependency>
+ <groupId>org.jboss.jbossas</groupId>
+ <artifactId>jboss-as-client</artifactId>
+ <version>${jboss-as-client.version}</version>
+ <type>pom</type>
+ <scope>test</scope>
+ </dependency>
+ </dependencies>
<build>
+ <testResources>
+ <testResource>
+ <directory>src/test/resources</directory>
+ </testResource>
+ <testResource>
+ <directory>src/test/resources-jbossas</directory>
+ </testResource>
+ </testResources>
<plugins>
- <plugin>
- <artifactId>maven-surefire-plugin</artifactId>
- <configuration>
- <skip>true</skip>
- </configuration>
- </plugin>
- </plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-enforcer-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>enforce-property</id>
+ <goals>
+ <goal>enforce</goal>
+ </goals>
+ <configuration>
+ <rules>
+ <requireProperty>
+ <property>jboss.home</property>
+ </requireProperty>
+ </rules>
+ <fail>true</fail>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
</build>
</profile>
Modified: modules/persistence/trunk/impl/src/test/resources/arquillian.xml
===================================================================
--- modules/persistence/trunk/impl/src/test/resources/arquillian.xml 2010-09-02 11:18:41
UTC (rev 13700)
+++ modules/persistence/trunk/impl/src/test/resources/arquillian.xml 2010-09-02 11:29:55
UTC (rev 13701)
@@ -2,7 +2,8 @@
<arquillian
xmlns="http://jboss.com/arquillian"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:gfembedded="urn:arq:org.jboss.arquillian.glassfish.embedded30"
-
xmlns:gfremote="urn:arq:org.jboss.arquillian.container.glassfish.remote30">
+ xmlns:gfremote="urn:arq:org.jboss.arquillian.container.glassfish.remote30"
+
xmlns:jbossmanaged="urn:arq:org.jboss.arquillian.container.jbossas.managed_6">
<engine>
<deploymentExportPath>/tmp/</deploymentExportPath>
@@ -15,5 +16,7 @@
<gfembedded:container>
<gfembedded:sunResourcesXml>src/test/resources-glassfish/sun-resources.xml</gfembedded:sunResourcesXml>
</gfembedded:container>
-
+ <jbossmanaged:container>
+ <javaVmArguments>-Xmx512m -XX:MaxPermSize=256m</javaVmArguments>
+ </jbossmanaged:container>
</arquillian>