Package com.consol.citrus.actions

Examples of com.consol.citrus.actions.TransformAction


 
    builder.execute();
    Assert.assertEquals(builder.testCase().getActions().size(), 1);
    Assert.assertEquals(builder.testCase().getActions().get(0).getClass(), TransformAction.class);
   
    TransformAction action = (TransformAction)builder.testCase().getActions().get(0);
   
    Assert.assertEquals(action.getName(), "transform");
    Assert.assertEquals(action.getXmlData(), "<Test>XML</test>");
    Assert.assertEquals(action.getXsltData(), "XSLT");
    Assert.assertEquals(action.getTargetVariable(), "result");
  }
View Full Code Here


   
    builder.execute();
    Assert.assertEquals(builder.testCase().getActions().size(), 1);
    Assert.assertEquals(builder.testCase().getActions().get(0).getClass(), TransformAction.class);
   
    TransformAction action = (TransformAction)builder.testCase().getActions().get(0);
   
    Assert.assertEquals(action.getName(), "transform");
    Assert.assertEquals(action.getXmlData(), "xmlData");
    Assert.assertEquals(action.getXsltData(), "xsltSource");
    Assert.assertEquals(action.getTargetVariable(), "result");
   
    verify(xmlResource, xsltResource);
  }
View Full Code Here

    @Test
    public void testTransformActionParser() {
        assertActionCount(2);
        assertActionClassAndName(TransformAction.class, "transform");
       
        TransformAction action = getNextTestActionFromTest();
        Assert.assertEquals(action.getTargetVariable(), "result");
        Assert.assertTrue(StringUtils.hasText(action.getXmlData()));
        Assert.assertNull(action.getXmlResourcePath());
        Assert.assertTrue(StringUtils.hasText(action.getXsltData()));
        Assert.assertNull(action.getXsltResourcePath());
       
        action = getNextTestActionFromTest();
        Assert.assertEquals(action.getTargetVariable(), "result");
        Assert.assertFalse(StringUtils.hasText(action.getXmlData()));
        Assert.assertNotNull(action.getXmlResourcePath());
        Assert.assertEquals(action.getXmlResourcePath(), "classpath:com/consol/citrus/actions/transform-source.xml");
        Assert.assertFalse(StringUtils.hasText(action.getXsltData()));
        Assert.assertNotNull(action.getXsltResourcePath());
        Assert.assertEquals(action.getXsltResourcePath(), "classpath:com/consol/citrus/actions/transform.xslt");
    }
View Full Code Here

TOP

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

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.