Details
-
Test
-
Status: Closed
-
Minor
-
Resolution: Invalid
-
None
-
None
-
None
-
None
-
Unknown
Description
When running mvn install or mvn test, many Camel unit tests that are based on ContextTestSupport fail. These failures are due to threading issues that rarely occur when testing individual modules. CamelTestSupport, which is used for testing classes outside of Camel Core, uses ThreadLocal instances for the CamelContext, the ProducerTemplate, and the ConsumerTemplate. ContextTestSupport should be updated to use ThreadLocal as well. In addition, the property camel.surefire.reuseForks in parent/pom.xml should default to false. With these changes, most of the unit tests will pass.{}