Package com.consol.citrus.channel

Examples of com.consol.citrus.channel.ChannelEndpointAdapter


        if (endpointAdapterDelegate == null) {
            ChannelSyncEndpointConfiguration endpointConfiguration = new ChannelSyncEndpointConfiguration();
            endpointConfiguration.setChannelName(name + AbstractServer.DEFAULT_CHANNEL_ID_SUFFIX);
            endpointConfiguration.setBeanFactory(applicationContext);

            ChannelEndpointAdapter channelEndpointAdapter = new ChannelEndpointAdapter(endpointConfiguration);
            channelEndpointAdapter.setTestContextFactory(testContextFactory);
            endpointAdapterDelegate = channelEndpointAdapter;
        }

        if (getMappingStrategy() == null) {
            BeanNameMappingStrategy mappingStrategy = new BeanNameMappingStrategy();
View Full Code Here


            ChannelSyncEndpointConfiguration channelEndpointConfiguration = new ChannelSyncEndpointConfiguration();
            channelEndpointConfiguration.setChannelName(getName() + DEFAULT_CHANNEL_ID_SUFFIX);
            channelEndpointConfiguration.setBeanFactory(getBeanFactory());
            channelEndpointConfiguration.setTimeout(defaultTimeout);
            channelEndpointConfiguration.setUseObjectMessages(true);
            endpointAdapter = new ChannelEndpointAdapter(channelEndpointConfiguration);
            endpointAdapter.getEndpoint().setName(getName());
            ((AbstractEndpointAdapter)endpointAdapter).setTestContextFactory(testContextFactory);
        }

        if (autoStart) {
View Full Code Here

        Map<String, ChannelEndpointAdapter> adapters = beanDefinitionContext.getBeansOfType(ChannelEndpointAdapter.class);

        Assert.assertEquals(adapters.size(), 1);

        // 1st endpoint adapter
        ChannelEndpointAdapter adapter = adapters.get("endpointAdapter");
        Assert.assertEquals(adapter.getName(), "endpointAdapter");
        Assert.assertEquals(adapter.getEndpointConfiguration().getTimeout(), 10000L);
        Assert.assertEquals((adapter.getEndpointConfiguration()).getChannelName(), "serverChannel");
        Assert.assertEquals(adapter.getEndpointConfiguration().isUseObjectMessages(), false);

    }
View Full Code Here

TOP

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

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.