You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Willem Jiang (JIRA)" <ji...@apache.org> on 2014/04/21 10:05:15 UTC

[jira] [Commented] (CAMEL-7380) Add test support for ContextHierarchy

    [ https://issues.apache.org/jira/browse/CAMEL-7380?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13975476#comment-13975476 ] 

Willem Jiang commented on CAMEL-7380:
-------------------------------------

Hi Chris,

I just have a quick look at the document that you pointed out, I just have the feeling that spring can cache the parent context if the user use the DirtiesContext and ContextHierarchy at the same time.

Any thought?

Regards,

Willem

> Add test support for ContextHierarchy
> -------------------------------------
>
>                 Key: CAMEL-7380
>                 URL: https://issues.apache.org/jira/browse/CAMEL-7380
>             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. 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()



--
This message was sent by Atlassian JIRA
(v6.2#6252)