Examples of MpsChannelConfiguration


Examples of com.volantis.mcs.runtime.configuration.MpsChannelConfiguration

        assertEquals("message-recipient-info", mps.messageRecipientInfo, mri);
       
        Map channelTable = new HashMap();
        Iterator channelsIterator = config.getChannelsIterator();
        while (channelsIterator.hasNext()) {
            MpsChannelConfiguration channelConfig =
                (MpsChannelConfiguration)channelsIterator.next();
            channelTable.put(channelConfig.getName(),channelConfig);
        }
        Iterator channels = mps.channels.iterator();
        while (channels.hasNext()) {
            ConfigValueChannel channel = (ConfigValueChannel) channels.next();
            MpsChannelConfiguration channelConfig =
                (MpsChannelConfiguration) channelTable.get(channel.name);
            Map attrs = channelConfig.getArguments();   
            assertNotNull("Channel Config for " + channel.name , channelConfig);
            assertEquals(channel.name, channelConfig.getName());
            assertEquals(channel.channelClass, channelConfig.getClassName());
            if (channel instanceof ConfigValueChannelSms) {
                ConfigValueChannelSms sms = (ConfigValueChannelSms) channel;
                assertEquals(sms.address,
                        attrs.get(LogicaSMSChannelAdapter.ADDRESS));
                assertEquals(valueOf(sms.port),
View Full Code Here

Examples of com.volantis.mcs.runtime.configuration.MpsChannelConfiguration

            Iterator channels = mpsPlugin.getChannelsIterator();
            if (channelValues != null) {
                assertNotNull("channels", channels);
                assertTrue(channels.hasNext());
                for (int i = 0; i < channelValues.length; i++) {
                    MpsChannelConfiguration channel =
                            (MpsChannelConfiguration) channels.next();
                    ChannelValue channelValue = channelValues[i];
                    checkChannel(channelValue, channel);
                }
                assertTrue(!channels.hasNext());
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.