Package com.consol.citrus.actions

Examples of com.consol.citrus.actions.FailAction


       
        replay(action);
       
        List<TestAction> actionList = new ArrayList<TestAction>();
        actionList.add(action);
        actionList.add(new FailAction());
        actionList.add(action);
       
        catchAction.setActions(actionList);
       
        catchAction.setException("com.consol.citrus.exceptions.CitrusRuntimeException");
View Full Code Here


    @Test
    public void testAssertDefaultException() {
        Assert assertAction = new Assert();
       
        assertAction.setAction(new FailAction());
       
        assertAction.execute(context);
    }
View Full Code Here

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

    @Test
    @SuppressWarnings({ "unchecked", "rawtypes" })
    public void testAssertExceptionMessageCheck() {
        Assert assertAction = new Assert();
       
        FailAction fail = new FailAction();
        fail.setMessage("This went wrong!");
       
        assertAction.setAction(fail);
       
        Class exceptionClass = CitrusRuntimeException.class;
        assertAction.setException(exceptionClass);
View Full Code Here

    public void testVariableSupport() {
        Assert assertAction = new Assert();
       
        context.setVariable("message", "This went wrong!");
       
        FailAction fail = new FailAction();
        fail.setMessage("This went wrong!");
       
        assertAction.setAction(fail);
       
        Class exceptionClass = CitrusRuntimeException.class;
        assertAction.setException(exceptionClass);
View Full Code Here

    @Test
    @SuppressWarnings({ "unchecked", "rawtypes" })
    public void testValidationMatcherSupport() {
        Assert assertAction = new Assert();
       
        FailAction fail = new FailAction();
        fail.setMessage("This went wrong!");
       
        assertAction.setAction(fail);
       
        Class exceptionClass = CitrusRuntimeException.class;
        assertAction.setException(exceptionClass);
View Full Code Here

    @Test(expectedExceptions=CitrusRuntimeException.class)
    @SuppressWarnings({ "unchecked", "rawtypes" })
    public void testAssertExceptionWrongMessageCheck() {
        Assert assertAction = new Assert();
       
        FailAction fail = new FailAction();
        fail.setMessage("This went wrong!");
       
        assertAction.setAction(fail);
       
        Class exceptionClass = CitrusRuntimeException.class;
        assertAction.setException(exceptionClass);
View Full Code Here

        reset(action1, action2, action3);
       
        replay(action1, action2, action3);
       
        List<TestAction> actionList = new ArrayList<TestAction>();
        actionList.add(new FailAction());
        actionList.add(action1);
        actionList.add(action2);
        actionList.add(action3);
       
        sequenceAction.setActions(actionList);
View Full Code Here

       
        List<TestAction> actionList = new ArrayList<TestAction>();
        actionList.add(action1);
        actionList.add(action2);
        actionList.add(action3);
        actionList.add(new FailAction());
       
        sequenceAction.setActions(actionList);
       
        sequenceAction.execute(context);
    }
View Full Code Here

       
        replay(action1, action2, action3);
       
        List<TestAction> actionList = new ArrayList<TestAction>();
        actionList.add(action1);
        actionList.add(new FailAction());
        actionList.add(action2);
        actionList.add(action3);
       
        sequenceAction.setActions(actionList);
       
View Full Code Here

TOP

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

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.