Examples of SmooksTransformFactory


Examples of org.switchyard.transform.smooks.internal.SmooksTransformFactory

    @Test
    public void test_invalid_xml2java_config() throws IOException, SAXException {
        V1SmooksTransformModel model = (V1SmooksTransformModel)new V1SmooksTransformModel(TransformNamespace.DEFAULT.uri()).setTransformType("XML2JAVA").setFrom(new QName("a")).setTo(new QName("b"));
        model.setConfig("/org/switchyard/transform/internal/smooks/smooks-config-01.xml");
        try {
            new SmooksTransformFactory().newTransformer(null, model);
        } catch (RuntimeException e) {
          boolean exceptionMatch = e.getMessage().contains("SWITCHYARD016812");
            Assert.assertTrue(exceptionMatch);
        }
    }
View Full Code Here

Examples of org.switchyard.transform.smooks.internal.SmooksTransformFactory

    @Test
    public void test_invalid_java2xml_config() throws IOException, SAXException {
        V1SmooksTransformModel model = (V1SmooksTransformModel)new V1SmooksTransformModel(TransformNamespace.DEFAULT.uri()).setTransformType("JAVA2XML").setFrom(new QName("a")).setTo(new QName("b"));
        model.setConfig("/org/switchyard/transform/internal/smooks/smooks-config-01.xml");
        try {
            new SmooksTransformFactory().newTransformer(null, model);
        } catch (RuntimeException e) {
          boolean exceptionMatch = e.getMessage().contains("SWITCHYARD016812");
          Assert.assertTrue(exceptionMatch);
        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.