TestNG vis JBoss AS7
john.genoese Sep 26, 2011 11:38 AMI am new to JBoss AS7 and new to Arquillian. I am contemplating a migration from Seam 2.2.1/ICEfaces 1.8.2/JBoss 5.1.0 to Weld/Seam3/ICEfaces 2/JBoss AS7. I am trying to build a base platform as a starter and am having a bit of difficulty getting TestNG to work with JBoss AS7. I am getting this message:
...
Caused by: java.lang.IllegalStateException: No implementation found for org.jboss.arquillian.spi.client.container.DeployableContainer, please check your classpath
at org.jboss.arquillian.impl.DynamicServiceLoader.verifyOnlyOneOrSameImplementation(DynamicServiceLoader.java:134)
at org.jboss.arquillian.impl.DynamicServiceLoader.onlyOne(DynamicServiceLoader.java:92)
at org.jboss.arquillian.impl.domain.ContainerRegistry.create(ContainerRegistry.java:69)
I'd like to be able to somehow use all the SeamTest-derivative tests in the current Seam 2 project, and so I'm very interested in getting TestNG to work properly. Seam Forge / Arquillian didn't offer me a TestNG option so that door is closed to me for now.
Can anyone offer counsel or share a similar migration experience?
Thanks.
pom.xml:
{code:xml}
<?xml version="1.0" encoding="UTF-8"?>
<project
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<groupId>org.memoriesdreamsandreflections.learn_seam_testng</groupId>
<artifactId>learn_seam_testng</artifactId>
<version>1.0.0-SNAPSHOT</version>
<dependencies>
<dependency>
<groupId>javax.enterprise</groupId>
<artifactId>cdi-api</artifactId>
<version>1.0-SP4</version>
<scope>provided</scope>
</dependency>
<!-- <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId>
<version>4.9</version> <scope>test</scope> </dependency> <dependency> <groupId>org.jboss.arquillian.junit</groupId>
<artifactId>arquillian-junit-container</artifactId> <version>1.0.0.Final-SNAPSHOT</version>
<scope>test</scope> </dependency> -->
<dependency>
<groupId>org.testng</groupId>
<artifactId>testng</artifactId>
<version>6.1.1</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.jboss.arquillian</groupId>
<artifactId>arquillian-testng</artifactId>
<version>1.0.0.Alpha5</version>
<scope>test</scope>
</dependency>
</dependencies>
<repositories>
<repository>
<id>JBOSS_NEXUS</id>
<url>http://repository.jboss.org/nexus/content/groups/public</url>
</repository>
</repositories>
<build>
<finalName>learn_seam</finalName>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.3.2</version>
<configuration>
<source>1.6</source>
<target>1.6</target>
</configuration>
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>arq-jbossas-7-managed</id>
<dependencies>
<dependency>
<groupId>org.jboss.as</groupId>
<artifactId>jboss-as-arquillian-container-managed</artifactId>
<version>7.1.0.Alpha1-SNAPSHOT</version>
<scope>test</scope>
</dependency>
</dependencies>
</profile>
</profiles>
</project>
{code}