Package com.consol.citrus.container

Examples of com.consol.citrus.container.Iterate


       
        assertEquals(builder.testCase().getActions().size(), 1);
        assertEquals(builder.testCase().getActions().get(0).getClass(), Iterate.class);
        assertEquals(builder.testCase().getActions().get(0).getName(), "iterate");
       
        Iterate container = (Iterate)builder.testCase().getActions().get(0);
        assertEquals(container.getActionCount(), 1);
        assertEquals(container.getIndexName(), "i");
        assertEquals(container.getCondition(), "i lt 5");
        assertEquals(container.getStep(), 1);
        assertEquals(container.getIndex(), 0);
    }
View Full Code Here


        assertEquals(builder.testCase().getActions().size(), 1);
        assertEquals(builder.testCase().getActions().get(0).getClass(), Iterate.class);
        assertEquals(builder.testCase().getActions().get(0).getName(), "iterate");

        Iterate container = (Iterate)builder.testCase().getActions().get(0);
        assertEquals(container.getActionCount(), 2);
        assertEquals(container.getIndexName(), "i");
        assertEquals(container.getCondition(), "i lt 5");
        assertEquals(container.getStep(), 1);
        assertEquals(container.getIndex(), 0);
    }
View Full Code Here

    @Test
    public void testFailActionParser() {
        assertActionCount(3);
        assertActionClassAndName(Iterate.class, "iterate");
       
        Iterate action = getNextTestActionFromTest();
        Assert.assertEquals(action.getCondition(), "i lt 3");
        Assert.assertEquals(action.getIndexName(), "i");
        Assert.assertEquals(action.getIndex(), 1);
        Assert.assertEquals(action.getStep(), 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.getStep(), 1);
        Assert.assertEquals(action.getActionCount(), 1);
       
        action = getNextTestActionFromTest();
        Assert.assertEquals(action.getCondition(), "i lt= 10");
        Assert.assertEquals(action.getIndexName(), "i");
        Assert.assertEquals(action.getIndex(), 0);
        Assert.assertEquals(action.getStep(), 5);
        Assert.assertEquals(action.getActionCount(), 2);
    }
View Full Code Here

TOP

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

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.