camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Willem Jiang (JIRA)" <>
Subject [jira] [Commented] (CAMEL-7380) Add test support for ContextHierarchy
Date Wed, 11 Jun 2014 03:55:02 GMT


Willem Jiang commented on CAMEL-7380:

Hi Chris,

You code snippet explains everything, I just commit a quick enhancement to let camel-spring-test
leverage the new feature of spring test.

BTW, I checked camel parent pom for the spring version range we support, as we don't support
spring 3.1.x any more, I don't need to use reflection to pick up the parent context any more.



> Add test support for ContextHierarchy
> -------------------------------------
>                 Key: CAMEL-7380
>                 URL:
>             Project: Camel
>          Issue Type: New Feature
>          Components: camel-test
>            Reporter: Chris Watts
> In Spring 3.2 they've added ContextHierarchy, which allows loading nested of spring contexts.
> 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()

This message was sent by Atlassian JIRA

View raw message