You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ni...@apache.org on 2009/12/27 10:45:02 UTC
svn commit: r894050 -
/camel/trunk/components/camel-cxf/src/test/java/org/apache/camel/component/cxf/spring/CxfEndpointBeanWithBusTest.java
Author: ningjiang
Date: Sun Dec 27 09:45:01 2009
New Revision: 894050
URL: http://svn.apache.org/viewvc?rev=894050&view=rev
Log:
Fixed the CxfEndpointBeanWithBusTest error
Modified:
camel/trunk/components/camel-cxf/src/test/java/org/apache/camel/component/cxf/spring/CxfEndpointBeanWithBusTest.java
Modified: camel/trunk/components/camel-cxf/src/test/java/org/apache/camel/component/cxf/spring/CxfEndpointBeanWithBusTest.java
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-cxf/src/test/java/org/apache/camel/component/cxf/spring/CxfEndpointBeanWithBusTest.java?rev=894050&r1=894049&r2=894050&view=diff
==============================================================================
--- camel/trunk/components/camel-cxf/src/test/java/org/apache/camel/component/cxf/spring/CxfEndpointBeanWithBusTest.java (original)
+++ camel/trunk/components/camel-cxf/src/test/java/org/apache/camel/component/cxf/spring/CxfEndpointBeanWithBusTest.java Sun Dec 27 09:45:01 2009
@@ -41,9 +41,11 @@
public void testBusInjectedBySpring() throws Exception {
CamelContext camelContext = (CamelContext) ctx.getBean("camel");
CxfEndpoint endpoint = (CxfEndpoint)camelContext.getEndpoint("cxf:bean:routerEndpoint");
-
+
// verify the interceptor that is added by the logging feature
- assertTrue(endpoint.getBus().getInInterceptors().size() == 1);
+ // Spring 3.0.0 has an issue of SPR-6589 which will call the BusApplicationListener twice for the same event,
+ // so we will get more one InInterceptors here
+ assertTrue(endpoint.getBus().getInInterceptors().size() >= 1);
assertEquals(LoggingInInterceptor.class, endpoint.getBus().getInInterceptors().get(0).getClass());
}