Package com.consol.citrus.actions

Examples of com.consol.citrus.actions.PurgeMessageChannelAction


        Assert.assertEquals(builder.testCase().getActions().size(), 1);
        Assert.assertEquals(builder.testCase().getActions().get(0).getClass(), PurgeMessageChannelAction.class);
        Assert.assertEquals(builder.testCase().getActions().get(0).getName(), "purge-channel");

        PurgeMessageChannelAction action = (PurgeMessageChannelAction) builder.testCase().getActions().get(0);
        Assert.assertEquals(action.getChannels().size(), 3);
        Assert.assertEquals(action.getChannels().toString(), "[" + channel1.toString() + ", " + channel2.toString() + ", " + channel3.toString() + "]");
        Assert.assertNull(action.getMessageSelector());
    }
View Full Code Here


        builder.execute();

        Assert.assertEquals(builder.testCase().getActions().size(), 1);
        Assert.assertEquals(builder.testCase().getActions().get(0).getClass(), PurgeMessageChannelAction.class);

        PurgeMessageChannelAction action = (PurgeMessageChannelAction) builder.testCase().getActions().get(0);
        Assert.assertEquals(action.getChannelNames().size(), 4);
        Assert.assertEquals(action.getChannelNames().toString(), "[ch1, ch2, ch3, ch4]");
        Assert.assertEquals(action.getChannelResolver(), channelResolver);
        Assert.assertEquals(action.getMessageSelector(), messageSelector);
       
        verify(applicationContextMock);
    }
View Full Code Here

        builder.execute();
       
        Assert.assertEquals(builder.testCase().getActions().size(), 1);
        Assert.assertEquals(builder.testCase().getActions().get(0).getClass(), PurgeMessageChannelAction.class);

        PurgeMessageChannelAction action = (PurgeMessageChannelAction) builder.testCase().getActions().get(0);
        Assert.assertEquals(action.getChannelNames().size(), 1);
        Assert.assertEquals(action.getChannelNames().toString(), "[ch1]");
        Assert.assertNotNull(action.getChannelResolver());
        Assert.assertTrue(action.getChannelResolver() instanceof BeanFactoryChannelResolver);
       
        verify(applicationContextMock);
    }
View Full Code Here

    @Test
    public void testPurgeMessageChannelActionParser() {
        assertActionCount(3);
        assertActionClassAndName(PurgeMessageChannelAction.class, "purge-channel");
       
        PurgeMessageChannelAction action = getNextTestActionFromTest();
        Assert.assertNotNull(action.getMessageSelector());
        Assert.assertEquals(action.getChannels().size(), 0);
        Assert.assertEquals(action.getChannelNames().size(), 3);
        Assert.assertEquals(action.getChannelNames().get(0), "testChannel1");
        Assert.assertEquals(action.getChannelNames().get(1), "testChannel2");
        Assert.assertEquals(action.getChannelNames().get(2), "testChannel3");
       
        action = getNextTestActionFromTest();
        Assert.assertNotNull(action.getMessageSelector());
        Assert.assertEquals(action.getChannels().size(), 1);
        Assert.assertEquals(action.getChannelNames().size(), 3);
        Assert.assertEquals(action.getChannelNames().get(0), "testChannel1");
        Assert.assertEquals(action.getChannelNames().get(1), "testChannel2");
        Assert.assertEquals(action.getChannelNames().get(2), "testChannel3");
       
        action = getNextTestActionFromTest();
        Assert.assertEquals(action.getMessageSelector(), beanDefinitionContext.getBean("testMessageSelector"));
        Assert.assertEquals(action.getChannels().size(), 1);
        Assert.assertEquals(action.getChannelNames().size(), 1);
        Assert.assertEquals(action.getChannelNames().get(0), "testChannel1");
    }
View Full Code Here

TOP

Related Classes of com.consol.citrus.actions.PurgeMessageChannelAction

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.