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

Add test support for ContextHierarchy

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.14.0
    • camel-test
    • None
    • Unknown

    Description

      In Spring 3.2 they've added ContextHierarchy, which allows loading nested of spring contexts. See
      http://docs.spring.io/spring/docs/3.2.x/spring-framework-reference/html/testing.html

      This would improve the loading time of tests where DirtiesContext is required to cause the camel context to be reloaded by having everything except the camel context defined in the parent context and the child context would have the camel definition. By only dirtying the child context, the larger parent context can remain.

      CamelSpringTestContextLoader would need to be modified to call (via reflection) MergedContextConfiguration.getParentApplicationContext()

      Attachments

        Activity

          People

            njiang Willem Jiang
            wattsc3 Chris Watts
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: