Examples of CamelEndpoint


Examples of com.consol.citrus.camel.endpoint.CamelEndpoint

        Map<String, CamelEndpoint> endpoints = beanDefinitionContext.getBeansOfType(CamelEndpoint.class);

        Assert.assertEquals(endpoints.size(), 3);

        // 1st message receiver
        CamelEndpoint camelEndpoint = endpoints.get("camelEndpoint1");
        Assert.assertEquals(camelEndpoint.getEndpointConfiguration().getCamelContext(), beanDefinitionContext.getBean("camelContext"));
        Assert.assertEquals(camelEndpoint.getEndpointConfiguration().getEndpointUri(), "direct:news-feed1");
        Assert.assertEquals(camelEndpoint.getEndpointConfiguration().getTimeout(), 5000L);

        // 2nd message receiver
        camelEndpoint = endpoints.get("camelEndpoint2");
        Assert.assertEquals(camelEndpoint.getEndpointConfiguration().getCamelContext(), beanDefinitionContext.getBean("specialCamelContext"));
        Assert.assertEquals(camelEndpoint.getEndpointConfiguration().getEndpointUri(), "direct:news-feed2");
        Assert.assertEquals(camelEndpoint.getEndpointConfiguration().getTimeout(), 10000L);

        // 3rd message receiver
        camelEndpoint = endpoints.get("camelEndpoint3");
        Assert.assertEquals(camelEndpoint.getEndpointConfiguration().getMessageConverter(), beanDefinitionContext.getBean("messageConverter"));
        Assert.assertEquals(camelEndpoint.getEndpointConfiguration().getEndpointUri(), "direct:news-feed3");
        Assert.assertEquals(camelEndpoint.getActor(), beanDefinitionContext.getBean("testActor", TestActor.class));
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.