FW: Running integration tests in Eclipse JUnit


Noam Mor <Noam.Mor@...>
 

Hello,

 

Since about a week ago, we haven’t been able to run the ODL integration tests in Eclipse. I think it might have to do with commit 8feb160 from 12.11.2013, which changes the Eclipse build output directory from /target/ to /target-ide/.

Has anyone else run into these problems, and if so, managed to solve them?

 

This is an exception we are getting (inside Eclipse, not in console) when trying to run the integration tests with JUnit:

 

java.lang.RuntimeException: Could not resolve version for groupId:org.jboss.spec.javax.transaction artifactId:jboss-transaction-api_1.1_spec by reading the dependency information generated by maven.

               at org.ops4j.pax.exam.MavenUtils.getArtifactVersion(MavenUtils.java:73)

               at org.ops4j.pax.exam.MavenUtils$1.getVersion(MavenUtils.java:89)

               at org.ops4j.pax.exam.options.MavenArtifactUrlReference.version(MavenArtifactUrlReference.java:86)

[…. Trimmed …]

               at org.junit.runners.model.RunnerBuilder.safeRunnerForClass(RunnerBuilder.java:57)

               at org.junit.internal.builders.AllDefaultPossibilitiesBuilder.runnerForClass(AllDefaultPossibilitiesBuilder.java:29)

               at org.junit.runners.model.RunnerBuilder.safeRunnerForClass(RunnerBuilder.java:57)

               at org.junit.internal.requests.ClassRequest.getRunner(ClassRequest.java:24)

               at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.<init>(JUnit4TestReference.java:33)

 

Thank you

Noam