Package com.consol.citrus.container

Examples of com.consol.citrus.container.Catch


        assertEquals(builder.testCase().getActions().get(0).getClass(), Catch.class);
        assertEquals(builder.testCase().getActions().get(0).getName(), "catch");
        assertEquals(builder.testCase().getActions().get(1).getClass(), Catch.class);
        assertEquals(builder.testCase().getActions().get(1).getName(), "catch");
       
        Catch container = (Catch)builder.testCase().getActions().get(0);
        assertEquals(container.getActions().size(), 1);
        assertEquals(container.getException(), "com.consol.citrus.exceptions.CitrusRuntimeException");
        assertEquals(((EchoAction)(container.getActions().get(0))).getMessage(), "${var}");
       
        container = (Catch)builder.testCase().getActions().get(1);
        assertEquals(container.getActions().size(), 2);
        assertEquals(container.getException(), "com.consol.citrus.exceptions.CitrusRuntimeException");
        assertEquals(((EchoAction)(container.getActions().get(0))).getMessage(), "${var}");
        assertEquals(((SleepAction)(container.getActions().get(1))).getMilliseconds(), "100");
    }
View Full Code Here


    @Test
    public void testCatchParser() {
        assertActionCount(1);
        assertActionClassAndName(Catch.class, "catch");
       
        Catch action = getNextTestActionFromTest();
        Assert.assertEquals(action.getException(), "com.consol.citrus.exceptions.CitrusRuntimeException");
        Assert.assertEquals(action.getActionCount(), 1);
        Assert.assertEquals(action.getActions().get(0).getClass(), FailAction.class);
    }
View Full Code Here

TOP

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

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.