essobedo opened a new pull request, #7849: URL: https://github.com/apache/camel/pull/7849
Fix for https://issues.apache.org/jira/browse/CAMEL-18215 ## Motivation When `camel-debug` is on the classpath, the intent is to use the `Camel Backlog Debugger` which is based on JMX. It would be nice in tests that we do not need to override the method `useJmx` as it is implicitly needed by `camel-debug`. ## Modifications: * Adds the method `isCamelDebugPresent` to the utility class `CamelTestSupport` to detect `camel-debug` before initializing the Camel context. * Calls this new method in all Camel test JUnit 5 components to automatically enable JMX when `camel-debug` is detected ## Result Tested with success with `camel-test-junit5`, `camel-test-main-junit5` and `camel-test-spring-junit5`. Won't work with all Camel test JUnit 4 components. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
