Package org.milyn.delivery.dom

Examples of org.milyn.delivery.dom.DOMElementVisitor


 
  private void test_goodscript(SmooksResourceConfiguration config) throws InstantiationException, IllegalArgumentException, IOException, SAXException {
    GroovyContentHandlerFactory creator = new GroovyContentHandlerFactory();
   
    config.setParameter("new-name", "yyy");
    DOMElementVisitor resource = (DOMElementVisitor) creator.create(config);
   
    Document doc = XmlUtil.parseStream(new ByteArrayInputStream("<xxx/>".getBytes()), XmlUtil.VALIDATION_TYPE.NONE, false);
    assertEquals("xxx", doc.getDocumentElement().getTagName());
    resource.visitAfter(doc.getDocumentElement(), null);
    assertEquals("yyy", doc.getDocumentElement().getTagName());
  }
View Full Code Here

TOP

Related Classes of org.milyn.delivery.dom.DOMElementVisitor

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.