Package com.consol.citrus.actions

Examples of com.consol.citrus.actions.AntRunAction


        builder.execute();
       
        Assert.assertEquals(builder.testCase().getActions().size(), 1);
        Assert.assertEquals(builder.testCase().getActions().get(0).getClass(), AntRunAction.class);
       
        AntRunAction action = (AntRunAction)builder.testCase().getActions().get(0);
        Assert.assertEquals(action.getName(), "antrun");
        Assert.assertEquals(action.getBuildFilePath(), "com/consol/ant/build.xml");
        Assert.assertEquals(action.getTarget(), "doBuild");
    }
View Full Code Here


        builder.execute();
       
        Assert.assertEquals(builder.testCase().getActions().size(), 1);
        Assert.assertEquals(builder.testCase().getActions().get(0).getClass(), AntRunAction.class);
       
        AntRunAction action = (AntRunAction)builder.testCase().getActions().get(0);
        Assert.assertEquals(action.getName(), "antrun");
        Assert.assertEquals(action.getBuildFilePath(), "com/consol/ant/build.xml");
        Assert.assertNull(action.getTarget());
        Assert.assertEquals(action.getTargets(), "prepare,test,release");
    }
View Full Code Here

        builder.execute();
       
        Assert.assertEquals(builder.testCase().getActions().size(), 1);
        Assert.assertEquals(builder.testCase().getActions().get(0).getClass(), AntRunAction.class);
       
        AntRunAction action = (AntRunAction)builder.testCase().getActions().get(0);
        Assert.assertEquals(action.getName(), "antrun");
        Assert.assertEquals(action.getBuildFilePath(), "com/consol/ant/build.xml");
        Assert.assertEquals(action.getTarget(), "doBuild");
        Assert.assertEquals(action.getProperties().size(), 2L);
        Assert.assertEquals(action.getProperties().getProperty("name"), "MyBuildTest");
        Assert.assertEquals(action.getProperties().getProperty("filePath"), "/home/sayHello.txt");
    }
View Full Code Here

        builder.execute();
       
        Assert.assertEquals(builder.testCase().getActions().size(), 1);
        Assert.assertEquals(builder.testCase().getActions().get(0).getClass(), AntRunAction.class);
       
        AntRunAction action = (AntRunAction)builder.testCase().getActions().get(0);
        Assert.assertEquals(action.getName(), "antrun");
        Assert.assertEquals(action.getBuildFilePath(), "com/consol/ant/build.xml");
        Assert.assertEquals(action.getTarget(), "doBuild");
        Assert.assertEquals(action.getProperties().size(), 0L);
        Assert.assertEquals(action.getPropertyFilePath(), "/ant/build.properties");
    }
View Full Code Here

        builder.execute();
       
        Assert.assertEquals(builder.testCase().getActions().size(), 1);
        Assert.assertEquals(builder.testCase().getActions().get(0).getClass(), AntRunAction.class);
       
        AntRunAction action = (AntRunAction)builder.testCase().getActions().get(0);
        Assert.assertEquals(action.getName(), "antrun");
        Assert.assertEquals(action.getBuildListener(), buildListener);
    }
View Full Code Here

    @Test
    public void testAntRunActionParser() {
        assertActionCount(4);
        assertActionClassAndName(AntRunAction.class, "antrun");
       
        AntRunAction action = getNextTestActionFromTest();
        Assert.assertEquals(action.getBuildFilePath(), "classpath:com/consol/citrus/actions/build.xml");
        Assert.assertEquals(action.getTarget(), "sayHello");
        Assert.assertNull(action.getTargets());
        Assert.assertEquals(action.getProperties().size(), 0L);
        Assert.assertNull(action.getPropertyFilePath());
        Assert.assertNull(action.getBuildListener());
       
        action = getNextTestActionFromTest();
        Assert.assertEquals(action.getBuildFilePath(), "classpath:com/consol/citrus/actions/build.xml");
        Assert.assertNull(action.getTarget());
        Assert.assertEquals(action.getTargets(), "sayHello,sayGoodbye");
        Assert.assertEquals(action.getProperties().size(), 0L);
        Assert.assertNull(action.getPropertyFilePath());
        Assert.assertNull(action.getBuildListener());
       
        action = getNextTestActionFromTest();
        Assert.assertEquals(action.getBuildFilePath(), "classpath:com/consol/citrus/actions/build.xml");
        Assert.assertEquals(action.getTarget(), "sayHello");
        Assert.assertNull(action.getTargets());
        Assert.assertEquals(action.getProperties().size(), 2L);
        Assert.assertEquals(action.getProperties().get("welcomeText"), "Hello World!");
        Assert.assertEquals(action.getProperties().get("goodbyeText"), "Goodbye!");
        Assert.assertNull(action.getPropertyFilePath());
        Assert.assertNull(action.getBuildListener());
       
        action = getNextTestActionFromTest();
        Assert.assertEquals(action.getBuildFilePath(), "classpath:com/consol/citrus/actions/build.xml");
        Assert.assertEquals(action.getTarget(), "sayHello");
        Assert.assertNull(action.getTargets());
        Assert.assertEquals(action.getProperties().size(), 0L);
        Assert.assertEquals(action.getPropertyFilePath(), "classpath:com/consol/citrus/actions/build.properties");
        Assert.assertNotNull(action.getBuildListener());
        Assert.assertEquals(action.getBuildListener().getClass(), DefaultLogger.class);
    }
View Full Code Here

TOP

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

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.