Package com.consol.citrus.container

Examples of com.consol.citrus.container.RepeatUntilTrue


       
        assertEquals(builder.testCase().getActions().size(), 1);
        assertEquals(builder.testCase().getActions().get(0).getClass(), RepeatUntilTrue.class);
        assertEquals(builder.testCase().getActions().get(0).getName(), "repeat");
       
        RepeatUntilTrue container = (RepeatUntilTrue)builder.testCase().getActions().get(0);
        assertEquals(container.getActions().size(), 3);
        assertEquals(container.getCondition(), "i lt 5");
        assertEquals(container.getIndex(), 2);
        assertEquals(container.getIndexName(), "i");
        assertEquals(container.getTestAction(0).getClass(), EchoAction.class);
    }
View Full Code Here


    @Test
    public void testFailActionParser() {
        assertActionCount(3);
        assertActionClassAndName(RepeatUntilTrue.class, "repeat-until-true");
       
        RepeatUntilTrue action = getNextTestActionFromTest();
        Assert.assertEquals(action.getCondition(), "i lt 3");
        Assert.assertEquals(action.getIndexName(), "i");
        Assert.assertEquals(action.getIndex(), 1);
        Assert.assertEquals(action.getActionCount(), 1);
       
        action = getNextTestActionFromTest();
        Assert.assertEquals(action.getCondition(), "index lt= 2");
        Assert.assertEquals(action.getIndexName(), "index");
        Assert.assertEquals(action.getIndex(), 1);
        Assert.assertEquals(action.getActionCount(), 1);
       
        action = getNextTestActionFromTest();
        Assert.assertEquals(action.getCondition(), "i lt= 10");
        Assert.assertEquals(action.getIndexName(), "i");
        Assert.assertEquals(action.getIndex(), 1);
        Assert.assertEquals(action.getActionCount(), 2);
    }
View Full Code Here

TOP

Related Classes of com.consol.citrus.container.RepeatUntilTrue

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.