Running a junit testcase throws exception - Gave up waiting for service (objectClass=org.apache.camel.CamelContext).
Issue
- When i run a camel test with "camel:run" i see the follow error
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 62.7 sec <<< FAILURE! - in camelinaction.SQLTest
testProcessPolicy(camelinaction.SQLTest) Time elapsed: 62.647 sec <<< ERROR!
java.lang.RuntimeException: Gave up waiting for service (objectClass=org.apache.camel.CamelContext)
at camelinaction.SQLTest.setUp(SQLTest.java:44)
- My test class have sentences
System.out.println()per method, in the log no appears all output, which make me think that the test not pass for all methods.
Environment
- Red Hat JBoss Fuse
- 6.2.1
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
