Package com.consol.citrus.actions

Examples of com.consol.citrus.actions.TraceVariablesAction


   
    Assert.assertEquals(builder.testCase().getActions().size(), 2);
    Assert.assertEquals(builder.testCase().getActions().get(0).getClass(), TraceVariablesAction.class);
    Assert.assertEquals(builder.testCase().getActions().get(1).getClass(), TraceVariablesAction.class);
   
    TraceVariablesAction action = (TraceVariablesAction)builder.testCase().getActions().get(0);
    Assert.assertEquals(action.getName(), "trace");
    Assert.assertNull(action.getVariableNames());
   
    action = (TraceVariablesAction)builder.testCase().getActions().get(1);
        Assert.assertEquals(action.getName(), "trace");
        Assert.assertNotNull(action.getVariableNames());
        Assert.assertEquals(action.getVariableNames().toString(), "[variable1, variable2]");
  }
View Full Code Here


    @Test
    public void testTraceVariablesActionParser() {
        assertActionCount(2);
        assertActionClassAndName(TraceVariablesAction.class, "trace");
       
        TraceVariablesAction action = getNextTestActionFromTest();
        Assert.assertEquals(action.getVariableNames().size(), 0);
       
        action = getNextTestActionFromTest();
        Assert.assertEquals(action.getVariableNames().size(), 1);
        Assert.assertEquals(action.getVariableNames().get(0), "foo");
    }
View Full Code Here

TOP

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

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.