Package com.consol.citrus.container

Examples of com.consol.citrus.container.Assert


       
        assertEquals(builder.testCase().getActions().size(), 1);
        assertEquals(builder.testCase().getActions().get(0).getClass(), Assert.class);
        assertEquals(builder.testCase().getActions().get(0).getName(), "assert");
       
        Assert container = (Assert)(builder.testCase().getTestAction(0));
       
        assertEquals(container.getActions().size(), 1);
        assertEquals(container.getAction().getClass(), EchoAction.class);
        assertEquals(container.getException(), CitrusRuntimeException.class);
        assertEquals(container.getMessage(), "Unknown variable 'foo'");
        assertEquals(((EchoAction)(container.getAction())).getMessage(), "${foo}");
    }
View Full Code Here


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

        Assert container = (Assert)(builder.testCase().getTestAction(0));

        assertEquals(container.getActions().size(), 1);
        assertTrue(container.getAction().getClass().isAnonymousClass());
        assertEquals(container.getException(), CitrusRuntimeException.class);
        assertEquals(container.getMessage(), "Unknown variable 'foo'");
    }
View Full Code Here

TOP

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

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.