sry but i dont really caught  your intention.
here is the testclass(generated with the fuse-ide)
so yes it extends the CamelSpringTestSupport, it has an mock-endpoint
and what method did you mean?

public class CamelContextXmlTest extends CamelSpringTestSupport {

        // expected message bodies
        protected Object[] expectedBodies = {
                        ""};
        // templates to send to input endpoints
        @Produce(uri = "direct:start")
        protected ProducerTemplate input4Endpoint;
        // mock endpoints used to consume messages from the output endpoints and
then perform assertions
        @EndpointInject(uri = "mock:output")
        protected MockEndpoint outputEndpoint;

        @Test
        public void testDirectSending() throws Exception{
                // lets route from the output endpoints to our mock endpoints 
so we can
assert expectations
                context.addRoutes(new RouteBuilder() {
                        @Override
                        public void configure() throws Exception {
                                from("bean:pdp").to(outputEndpoint);
                        }
                });
                input4Endpoint.sendBody("direct:start");
                assertMockEndpointsSatisfied(5000, TimeUnit.MILLISECONDS); 
        }
        @Override
        protected ClassPathXmlApplicationContext createApplicationContext() {
                return new ClassPathXmlApplicationContext(
                                "META-INF/spring/camel-context.xml");
        }
}
But today there is a new situation: these routes  are working 
    <route>
        <from uri="activemq:topic:xacml.authzRequests"/>
        <log message="request consumed hopefully"/>
        <to uri="bean:pdp"/>
    </route>
     <route>
        <from uri="file:src/requests?noop=true"/>
        <bean method="genRequest" ref="xacmlRequest"/>
        <log message="request generated"/>
        <to uri="activemq:topic:xacml.authzRequests"/>
    </route>  
    <route>
        <from uri="direct:start"/>
        <bean method="genRequest" ref="xacmlRequest"/>
        <log message="request generated"/>
        <to uri="activemq:topic:xacml.authzRequests"/>
    </route> 
but if i comment out the file:... route  the direct:start route hangs and
nothing goes...

--
View this message in context: 
http://camel.465427.n5.nabble.com/what-did-i-forgot-Bean-integration-through-direct-start-tp4490510p4493925.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to