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

camel-test - Add support for creating CamelContext once per class, to re-use it when having multiple test methods

    XMLWordPrintableJSON

    Details

    • Type: New Feature
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.7.0
    • Fix Version/s: 2.8.0
    • Component/s: camel-test
    • Labels:
      None

      Description

      As Oleg posted on my blog
      http://davsclaus.blogspot.com/2011/05/faster-unit-testing-apache-camel-source.html

      We should add an option so end users can enable per class CamelContext (its shared). This ensure there is less overhead creating/shutting down CamelContext between test methods.

      Then they can decide to enable this in case their test can leverage this feature. This will speedup unit testing.

      This requires JUnit4 and its support for @BeforeClass and @AfterClass

      We should look into adding the same support for TestNG as well.

        Attachments

          Activity

            People

            • Assignee:
              davsclaus Claus Ibsen
              Reporter:
              davsclaus Claus Ibsen
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: