camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "KARR, DAVID" <>
Subject Issues running unit tests based on CamelTestSupport
Date Wed, 29 Mar 2017 19:06:44 GMT
I have only used Camel peripherally before.  I'm trying to get some unit tests working that
are based on CamelTestSupport.  When I run "mvn install" from the command line, the tests
attempt to execute, but I get errors like this:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.19.1:test
(default-test) on project ...: Execution default-test of goal org.apache.maven.plugins:maven-surefire-plugin:2.19.1:test
failed: There was an error in the forked process
[ERROR] java.lang.NoClassDefFoundError: org/junit/rules/TestWatcher
[ERROR] at java.lang.ClassLoader.defineClass1(Native Method)
[ERROR] at java.lang.ClassLoader.defineClass(
[ERROR] at
[ERROR] at
[ERROR] at$100(
[ERROR] at$
[ERROR] at$
[ERROR] at Method)
[ERROR] at
[ERROR] at java.lang.ClassLoader.loadClass(
[ERROR] at sun.misc.Launcher$AppClassLoader.loadClass(
[ERROR] at java.lang.ClassLoader.loadClass(
[ERROR] at java.lang.Class.getDeclaredMethods0(Native Method)
[ERROR] at java.lang.Class.privateGetDeclaredMethods(
[ERROR] at java.lang.Class.privateGetMethodRecursive(
[ERROR] at java.lang.Class.getMethod0(
[ERROR] at java.lang.Class.privateGetMethodRecursive(
[ERROR] at java.lang.Class.getMethod0(
[ERROR] at java.lang.Class.getMethod(
[ERROR] at org.apache.maven.surefire.util.ReflectionUtils.tryGetMethod(

I've verified that this class is in the junit artifact, which is set as a dependency in the
module (test scope).  Is there something funky about how Camel tests execute that are not
obvious to me?

View raw message