Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
added test for WFLY-2642
  • Loading branch information
psakar committed Feb 21, 2014
1 parent 463bdfc commit 618864b
Show file tree
Hide file tree
Showing 13 changed files with 579 additions and 0 deletions.
8 changes: 8 additions & 0 deletions arquillian/parent/pom.xml
Expand Up @@ -73,6 +73,14 @@
<artifactId>commons-logging</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.jboss.resteasy</groupId>
<artifactId>arquillian-deployment-scenario-provider</artifactId>
<version>1.0.0.Final</version>
<scope>test</scope>
</dependency>


</dependencies>


Expand Down
13 changes: 13 additions & 0 deletions pom.xml
Expand Up @@ -118,6 +118,7 @@
<module>jboss-modules</module>
<!-- <module>as7-integration-testing</module> -->
<module>arquillian</module>
<module>arquillian-deployment-scenario-provider</module>
</modules>

<dependencyManagement>
Expand Down Expand Up @@ -449,5 +450,17 @@
</plugins>
</build>
</profile>

<profile>
<id>resteasy-spring-jboss</id>
<activation>
<property>
<name>resteasy-spring-jboss</name>
</property>
</activation>
<modules>
<module>resteasy-spring-jboss</module>
</modules>
</profile>
</profiles>
</project>
14 changes: 14 additions & 0 deletions resteasy-spring-jboss/README.md
@@ -0,0 +1,14 @@
Test automatic adding of resteasy-spring dependency as resource root by server (EAP 6.3 / Wildfly)

To run test from current module directory

mvn clean verify -Djboss.home=JBOSS_HOME
#eg. mvn clean verify -Djboss.home=/home/development/jbossqe/JBEAP-6.3.0.DR0/build/jboss-eap-6.3

Notes:
To install run arquillian-deployment-scenario-provider dependency into local maven repository
mvn install -pl :arquillian-deployment-scenario-provider from top level directory

To run test from top level directory
mvn clean verify -pl :resteasy-spring-jboss -Dresteasy-spring-jboss -Djboss.home=JBOSS_HOME
#eg. mvn clean verify -pl :resteasy-spring-jboss -Dresteasy-spring-jboss -Djboss.home=/home/development/jbossqe/JBEAP-6.3.0.DR0/build/jboss-eap-6.3
185 changes: 185 additions & 0 deletions resteasy-spring-jboss/pom.xml
@@ -0,0 +1,185 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.jboss.resteasy</groupId>
<artifactId>resteasy-spring-jboss</artifactId>
<version>1.0.0.Final</version>

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>

<maven.compiler.source>1.6</maven.compiler.source>
<maven.compiler.target>1.6</maven.compiler.target>


<version.cglib>2.2.2</version.cglib>
<version.commons-httpclient>3.1</version.commons-httpclient>
<version.junit>4.8.2</version.junit>
<version.org.aspectj>1.6.11</version.org.aspectj>
<version.org.jboss.arquillian>1.0.2.Final</version.org.jboss.arquillian>
<version.org.jboss.as.jboss-as-arquillian-container-managed>7.2.0.Final</version.org.jboss.as.jboss-as-arquillian-container-managed>
<version.org.jboss.resteasy>2.3.7.Final-redhat-2</version.org.jboss.resteasy>
<version.org.jboss.shrinkwrap.resolver>2.1.0-alpha-1</version.org.jboss.shrinkwrap.resolver>
<version.org.springframework>3.2.5.RELEASE</version.org.springframework>
<version.maven-failsafe-plugin>2.15</version.maven-failsafe-plugin>

</properties>

<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.jboss.shrinkwrap.resolver</groupId>
<artifactId>shrinkwrap-resolver-bom</artifactId>
<version>${version.org.jboss.shrinkwrap.resolver}</version>
<scope>import</scope>
<type>pom</type>
</dependency>
<dependency>
<groupId>org.jboss.arquillian</groupId>
<artifactId>arquillian-bom</artifactId>
<version>${version.org.jboss.arquillian}</version>
<scope>import</scope>
<type>pom</type>
</dependency>
</dependencies>
</dependencyManagement>


<dependencies>
<dependency>
<groupId>org.jboss.arquillian.protocol</groupId>
<artifactId>arquillian-protocol-servlet</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.jboss.arquillian.junit</groupId>
<artifactId>arquillian-junit-container</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.jboss.shrinkwrap.resolver</groupId>
<artifactId>shrinkwrap-resolver-bom</artifactId>
<version>${version.org.jboss.shrinkwrap.resolver}</version>
<scope>import</scope>
<type>pom</type>
</dependency>

<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>${version.junit}</version>
<scope>test</scope>
</dependency>

<dependency>
<groupId>commons-httpclient</groupId>
<artifactId>commons-httpclient</artifactId>
<version>${version.commons-httpclient}</version>
<scope>test</scope>
</dependency>


<dependency>
<groupId>org.jboss.resteasy</groupId>
<artifactId>arquillian-deployment-scenario-provider</artifactId>
<version>1.0.0.Final</version>
<scope>test</scope>
</dependency>

<!-- arquillian jboss as specific -->
<dependency>
<groupId>org.jboss.as</groupId>
<artifactId>jboss-as-arquillian-container-managed</artifactId>
<version>${version.org.jboss.as.jboss-as-arquillian-container-managed}</version>
<scope>test</scope>
</dependency>
<!-- END OF arquillian jboss as specific -->

<dependency>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
<version>3.0.1</version>
<scope>provided</scope>
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
<version>${version.maven-failsafe-plugin}</version>
<configuration>
<skip>true</skip>
</configuration>
<executions>
<execution>
<id>surefire-it</id>
<phase>integration-test</phase>
<goals>
<goal>integration-test</goal>
</goals>
<configuration>
<skip>false</skip>
<systemProperties>
<property>
<name>jboss.home</name>
<value>${jboss.home}</value>
</property>
</systemProperties>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>dependencies-in-deployment</id>
<activation>
<property>
<name>!as-modules</name>
</property>
</activation>
<dependencies>
<dependency>
<groupId>org.jboss.resteasy</groupId>
<artifactId>resteasy-spring</artifactId>
<version>${version.org.jboss.resteasy}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context</artifactId>
<version>${version.org.springframework}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-web</artifactId>
<version>${version.org.springframework}</version>
</dependency>

<!-- Proxying related -->
<dependency>
<groupId>cglib</groupId>
<artifactId>cglib-nodep</artifactId>
<version>${version.cglib}</version>
</dependency>

<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-aop</artifactId>
<version>${version.org.springframework}</version>
</dependency>

<!-- AspectJ AOP related -->
<dependency>
<groupId>org.aspectj</groupId>
<artifactId>aspectjweaver</artifactId>
<version>${version.org.aspectj}</version>
</dependency>
</dependencies>
</profile>
</profiles>
</project>

0 comments on commit 618864b

Please sign in to comment.