Package com.consol.citrus.actions

Examples of com.consol.citrus.actions.EchoAction


    @Test
    @SuppressWarnings({ "unchecked", "rawtypes" })
    public void testNothingToCatch() {
        Catch catchAction = new Catch();
       
        List actionList = Collections.singletonList(new EchoAction());
        catchAction.setActions(actionList);
       
        catchAction.setException("com.consol.citrus.exceptions.CitrusRuntimeException");
       
        catchAction.execute(context);
View Full Code Here


    @Test(expectedExceptions=CitrusRuntimeException.class)
    @SuppressWarnings({ "unchecked", "rawtypes" })
    public void testMissingException() {
        Assert assertAction = new Assert();
       
        assertAction.setAction(new EchoAction());
       
        Class exceptionClass = CitrusRuntimeException.class;
        assertAction.setException(exceptionClass);
       
        assertAction.execute(context);
View Full Code Here

        Template template = new Template();
       
        context.setVariable("text", "Hello Citrus!");
       
        List<TestAction> actions = new ArrayList<TestAction>();
        EchoAction echo = new EchoAction();
        echo.setMessage("${myText}");
       
        actions.add(echo);
        template.setActions(actions);
       
        Map<String, String> parameters = new HashMap<String, String>();
View Full Code Here

        Template template = new Template();
       
        context.setVariable("text", "Hello Citrus!");
       
        List<TestAction> actions = new ArrayList<TestAction>();
        EchoAction echo = new EchoAction();
        echo.setMessage("${myText}");
       
        actions.add(echo);
        template.setActions(actions);
       
        template.setParameter(Collections.singletonMap("myText", "${text}"));
View Full Code Here

        Template template = new Template();
       
        context.setVariable("text", "Hello Citrus!");
       
        List<TestAction> actions = new ArrayList<TestAction>();
        EchoAction echo = new EchoAction();
        echo.setMessage("${myText}");
       
        actions.add(echo);
        template.setActions(actions);
       
        try {
View Full Code Here

TOP

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

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.