BAEL-3260: Configure WildFly Arquillian container (#9667)

* BAEL-3260: Configure WildFly Arquillian container

* BAEL-3260-2: Add tomee-embedded dependency
This commit is contained in:
kwoyke 2020-07-08 07:51:35 +02:00 committed by GitHub
parent 5cc83c631b
commit cb566f840f
2 changed files with 82 additions and 1 deletions

View File

@ -31,7 +31,6 @@
<artifactId>javaee-api</artifactId>
<scope>provided</scope>
</dependency>
<!-- https://mvnrepository.com/artifact/org.apache.openejb/tomee-embedded -->
<dependency>
<groupId>org.apache.openejb</groupId>
<artifactId>tomee-embedded</artifactId>
@ -81,6 +80,62 @@
</dependencies>
<profiles>
<profile>
<id>wildfly-managed-arquillian</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<dependencies>
<dependency>
<groupId>org.wildfly</groupId>
<artifactId>wildfly-arquillian-container-managed</artifactId>
<version>${wildfly.version}</version>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<artifactId>maven-dependency-plugin</artifactId>
<version>${maven-dependency-plugin.version}</version>
<configuration>
<skip>${maven.test.skip}</skip>
</configuration>
<executions>
<execution>
<id>unpack</id>
<phase>process-test-classes</phase>
<goals>
<goal>unpack</goal>
</goals>
<configuration>
<artifactItems>
<artifactItem>
<groupId>org.wildfly</groupId>
<artifactId>wildfly-dist</artifactId>
<version>${wildfly.version}</version>
<type>zip</type>
<overWrite>false</overWrite>
<outputDirectory>${project.build.directory}</outputDirectory>
</artifactItem>
</artifactItems>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>${maven-surefire-plugin.version}</version>
<configuration>
<!-- Fork every test because it will launch a separate AS instance -->
<forkMode>always</forkMode>
</configuration>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>arquillian-glassfish-embedded</id>
<dependencies>
@ -117,12 +172,15 @@
<tomee-embedded.version>1.7.5</tomee-embedded.version>
<glassfish-embedded-all.version>3.1.2</glassfish-embedded-all.version>
<arquillian-glassfish-embedded-3.1.version>1.0.0.CR4</arquillian-glassfish-embedded-3.1.version>
<wildfly.version>8.2.1.Final</wildfly.version>
<javax.ejb-api.version>3.2</javax.ejb-api.version>
<springframework.version>5.2.3.RELEASE</springframework.version>
<activemq.broker.version>5.10.2</activemq.broker.version>
<activemq.junit.version>5.13.1</activemq.junit.version>
<mockito.version>2.21.0</mockito.version>
<byte-buddy.version>1.8.5</byte-buddy.version>
<maven-dependency-plugin.version>2.8</maven-dependency-plugin.version>
<wildfly-ejb.version>8.2.1.Final</wildfly-ejb.version>
</properties>
</project>

View File

@ -0,0 +1,23 @@
<arquillian xmlns="http://jboss.org/schema/arquillian" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation=" http://jboss.org/schema/arquillian http://jboss.org/schema/arquillian/arquillian_1_0.xsd">
<container qualifier="wildfly-managed" default="true">
<configuration>
<property name="jbossHome">target/wildfly-8.2.1.Final</property>
<property name="serverConfig">standalone.xml</property>
<property name="outputToConsole">true</property>
<property name="managementPort">9990</property>
<property name="javaVmArguments">-Djboss.http.port=8734</property>
</configuration>
</container>
<container qualifier="wildfly-remote">
<configuration>
<property name="managementAddress">127.0.0.1</property>
<property name="managementPort">9990</property>
<property name="username">admin</property>
<property name="password">pass</property>
<property name="allowConnectingToRunningServer">true</property>
</configuration>
</container>
</arquillian>