Package com.consol.citrus.channel

Examples of com.consol.citrus.channel.ChannelEndpointComponent


    }

    @Test
    public void testResolveCustomEndpoint() throws Exception {
        Map<String, EndpointComponent> components = new HashMap<String, EndpointComponent>();
        components.put("custom", new ChannelEndpointComponent());

        reset(applicationContext);
        expect(applicationContext.getBeansOfType(EndpointComponent.class)).andReturn(components).once();
        expect(applicationContext.getBean(IntegrationContextUtils.INTEGRATION_HEADER_CHANNEL_REGISTRY_BEAN_NAME, HeaderChannelRegistry.class))
                .andThrow(new NoSuchBeanDefinitionException(IntegrationContextUtils.INTEGRATION_HEADER_CHANNEL_REGISTRY_BEAN_NAME)).once();
View Full Code Here


    }

    @Test
    public void testOverwriteEndpointComponent() throws Exception {
        Map<String, EndpointComponent> components = new HashMap<String, EndpointComponent>();
        components.put("jms", new ChannelEndpointComponent());

        reset(applicationContext);
        expect(applicationContext.getBeansOfType(EndpointComponent.class)).andReturn(components).once();
        expect(applicationContext.getBean(IntegrationContextUtils.INTEGRATION_HEADER_CHANNEL_REGISTRY_BEAN_NAME, HeaderChannelRegistry.class))
                .andThrow(new NoSuchBeanDefinitionException(IntegrationContextUtils.INTEGRATION_HEADER_CHANNEL_REGISTRY_BEAN_NAME)).once();
View Full Code Here

TOP

Related Classes of com.consol.citrus.channel.ChannelEndpointComponent

Copyright © 2018 www.massapicom. 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.