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 2010/02/10 08:51:49 UTC
svn commit: r908374 -
/camel/trunk/components/camel-cxf/src/test/java/org/apache/camel/component/cxf/spring/CxfEndpointBeanWithBusTest.java
Author: ningjiang
Date: Wed Feb 10 07:51:49 2010
New Revision: 908374
URL: http://svn.apache.org/viewvc?rev=908374&view=rev
Log:
Revert the code which should not be committed
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=908374&r1=908373&r2=908374&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 Wed Feb 10 07:51:49 2010
@@ -19,7 +19,6 @@
import org.apache.camel.CamelContext;
import org.apache.camel.component.cxf.CxfEndpoint;
-import org.apache.cxf.Bus;
import org.apache.cxf.interceptor.LoggingInInterceptor;
import org.junit.Before;
import org.junit.Test;
@@ -41,20 +40,13 @@
@Test
public void testBusInjectedBySpring() throws Exception {
CamelContext camelContext = (CamelContext) ctx.getBean("camel");
- Bus bus = (Bus)camelContext.getRegistry().lookup("cxf");
- System.out.println("bus cxf is " + bus.getId());
-
CxfEndpoint endpoint = (CxfEndpoint)camelContext.getEndpoint("cxf:bean:routerEndpoint");
- System.out.println("endpoint bus id " + endpoint.getBus().getId());
-
- endpoint = (CxfEndpoint)camelContext.getEndpoint("cxf:bean:serviceEndpoint");
// verify the interceptor that is added by the logging feature
// 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());*/
- System.out.println("endpoint bus id " + endpoint.getBus().getId());
+ assertTrue(endpoint.getBus().getInInterceptors().size() >= 1);
+ assertEquals(LoggingInInterceptor.class, endpoint.getBus().getInInterceptors().get(0).getClass());
}
}