Running a junit testcase throws exception - Gave up waiting for service (objectClass=org.apache.camel.CamelContext).

Solution Verified - Updated -

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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content