[jira] Created: (CAMEL-1128) create some Spring Test examples using the JavaConfig mechanism in Spring

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

[jira] Created: (CAMEL-1128) create some Spring Test examples using the JavaConfig mechanism in Spring

JIRA jira@apache.org
create some Spring Test examples using the JavaConfig mechanism in Spring
-------------------------------------------------------------------------

                 Key: CAMEL-1128
                 URL: https://issues.apache.org/activemq/browse/CAMEL-1128
             Project: Apache Camel
          Issue Type: Improvement
            Reporter: James Strachan
            Assignee: James Strachan
             Fix For: 2.0.0




--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (CAMEL-1128) create some Spring Test examples using the JavaConfig mechanism in Spring

JIRA jira@apache.org

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

James Strachan commented on CAMEL-1128:
---------------------------------------

I've hacked up an example test case using Spring Test along with Spring Java Config here
https://svn.apache.org/repos/asf/activemq/camel/trunk/components/camel-spring-javaconfig/

e.g.
https://svn.apache.org/repos/asf/activemq/camel/trunk/components/camel-spring-javaconfig/src/test/java/org/apache/camel/spring/javaconfig/examples/

here's the test case
https://svn.apache.org/repos/asf/activemq/camel/trunk/components/camel-spring-javaconfig/src/test/java/org/apache/camel/spring/javaconfig/examples/FilterTest.java

the configuration is here
https://svn.apache.org/repos/asf/activemq/camel/trunk/components/camel-spring-javaconfig/src/test/java/org/apache/camel/spring/javaconfig/examples/FilterConfig.java


Unfortunately it doesn't currently work :( due to a bug where BeanPostProcessors don't seem to be invoked on test classes
http://jira.springframework.org/browse/SJC-248

once this is fixed then hopefully we can enable this component and document it on the wiki

> create some Spring Test examples using the JavaConfig mechanism in Spring
> -------------------------------------------------------------------------
>
>                 Key: CAMEL-1128
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-1128
>             Project: Apache Camel
>          Issue Type: Improvement
>            Reporter: James Strachan
>            Assignee: James Strachan
>             Fix For: 2.0.0
>
>


--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Resolved: (CAMEL-1128) create some Spring Test examples using the JavaConfig mechanism in Spring

JIRA jira@apache.org
In reply to this post by JIRA jira@apache.org

     [ https://issues.apache.org/activemq/browse/CAMEL-1128?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

James Strachan resolved CAMEL-1128.
-----------------------------------

    Resolution: Fixed

for background and documentation see http://activemq.apache.org/camel/testing.html

> create some Spring Test examples using the JavaConfig mechanism in Spring
> -------------------------------------------------------------------------
>
>                 Key: CAMEL-1128
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-1128
>             Project: Apache Camel
>          Issue Type: Improvement
>            Reporter: James Strachan
>            Assignee: James Strachan
>             Fix For: 2.0.0
>
>


--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.