Package org.milyn.delivery.sax

Examples of org.milyn.delivery.sax.SAXVisitBeforeVisitor


  public void test_terminate_prog_after() {
    Smooks smooks = new Smooks();
   
    smooks.addVisitor(new TerminateVisitor(), "customer");
    smooks.addVisitor(new SAXVisitBeforeVisitor().setInjectedParam("blah"), "user");
   
    smooks.filterSource(new StreamSource(getClass().getResourceAsStream("order.xml")));
    assertTrue(SAXVisitBeforeVisitor.visited);
  }
View Full Code Here


  public void test_terminate_prog_before() {
    Smooks smooks = new Smooks();
   
    smooks.addVisitor(new TerminateVisitor().setTerminateBefore(true), "customer");
    smooks.addVisitor(new SAXVisitBeforeVisitor().setInjectedParam("blah"), "user");
   
    smooks.filterSource(new StreamSource(getClass().getResourceAsStream("order.xml")));
    assertFalse(SAXVisitBeforeVisitor.visited);
  }
View Full Code Here

TOP

Related Classes of org.milyn.delivery.sax.SAXVisitBeforeVisitor

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.