Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-20291

Test cases fail due to threading issues when running 'mvn test'

    XMLWordPrintableJSON

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.{}

      Attachments

        Activity

          People

            cziesman Craig Ziesman
            cziesman Craig Ziesman
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: