@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);
}