camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CAMEL-8293) Be more override-friendly in CamelTestSupport by returning interface type instead of concrete impl
Date Mon, 02 Feb 2015 09:10:34 GMT

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

Claus Ibsen commented on CAMEL-8293:
------------------------------------

I think we looked at this in the past, and it broke some/many unit tests. Have you tested
this by building all the source code, and maybe run unit tests in some components?

> Be more override-friendly in CamelTestSupport by returning interface type instead of
concrete impl
> --------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-8293
>                 URL: https://issues.apache.org/jira/browse/CAMEL-8293
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-test
>    Affects Versions: 2.14.1
>            Reporter: David J. M. Karlsen
>
> CamelTestSupport has a 
> protected JndiRegistry createRegistry()
> method.
> It would be better if it returned the Generic type Registry instead - that way you can
override the method and return a SimpleRegistry for your tests without having to do this in
createCamelContext() which defats createRegistry's purpose.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message