Hi Jeff,
welcome to Pax Exam :-)
Are you running Maven from your IDE or from the commandline? Your
dependencies look ok, and my guess is that your tests will work when you
invoke Maven stand-alone, i.e. from the commandline.
If this is true, then your problem is likely to be another case of
http://team.ops4j.org/browse/PAXEXAM-291. The fix for that will be in
the next release 2.4.0.
Hope that helps,
Harald
Am 12.01.2012 22:43, schrieb Jeff Melby:
I am new to using Pax Exam, version 2.3.0. I am able to run my tests
fine when calling it from my IDE (IntelliJ IDEA). However, when I am
running the Maven test target, I get the following:
-------------------------------------------------------------------------------
Test set: com.uhg.upm3.webservice.hello.service.HelloServiceTest
-------------------------------------------------------------------------------
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.093
sec <<< FAILURE!
initializationError(com.uhg.upm3.webservice.hello.service.HelloServiceTest)
Time elapsed: 0 sec <<< ERROR!
org.ops4j.pax.exam.TestContainerException: No TestContainer
implementation in Classpath..
at
org.ops4j.pax.exam.spi.PaxExamRuntime.sanityCheck(PaxExamRuntime.java:144)
at
org.ops4j.pax.exam.spi.PaxExamRuntime.getTestContainerFactory(PaxExamRuntime.java:64)
at
org.ops4j.pax.exam.junit.JUnit4TestRunner.getExamFactory(JUnit4TestRunner.java:271)
...
I think I have the correct Maven dependencies, as IntelliJ is using the
same maven configuration for the classpath (among many others--this is a
partial list of what I thought relevant):
<dependency>
<groupId>org.apache.felix</groupId>
<artifactId>org.apache.felix.framework</artifactId>
<version>3.2.1</version>
</dependency>
<dependency>
<groupId>javax.inject</groupId>
<artifactId>javax.inject</artifactId>
<version>1</version>
</dependency>
....
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.9</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.ops4j.pax.exam</groupId>
<artifactId>pax-exam</artifactId>
<version>${pax.exam.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.ops4j.pax.exam</groupId>
<artifactId>pax-exam-junit4</artifactId>
<version>${pax.exam.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.ops4j.pax.exam</groupId>
<artifactId>pax-exam-container-native</artifactId>
<version>${pax.exam.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.ops4j.pax.exam</groupId>
<artifactId>pax-exam-link-assembly</artifactId>
<version>${pax.exam.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.ops4j.pax.exam</groupId>
<artifactId>pax-exam-link-mvn</artifactId>
<version>${pax.exam.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.ops4j.pax.url</groupId>
<artifactId>pax-url-aether</artifactId>
<version>1.3.5</version>
<scope>test</scope>
</dependency>
So, I would think that pax-exam-container-native
+ org.apache.felix.framework should serve as the TestContainer.
Any ideas on what I am missing here? Thanks for any help!
-Jeff
_______________________________________________
general mailing list
[email protected]
http://lists.ops4j.org/mailman/listinfo/general
_______________________________________________
general mailing list
[email protected]
http://lists.ops4j.org/mailman/listinfo/general