Examples of XPathGetter


Examples of ch.inftec.ju.util.xml.XPathGetter

       
    Document doc = this.createDbDataUtil().buildExport()
      .addTableSorted("TestingEntity", "ID")
      .writeToXmlDocument();
   
    XPathGetter xg = new XPathGetter(doc);
    Assert.assertEquals(1, xg.getSingleLong("//TestingEntity[1]/@id").intValue());
    Assert.assertEquals(2, xg.getSingleLong("//TestingEntity[2]/@id").intValue());
    Assert.assertEquals(3, xg.getSingleLong("//TestingEntity[3]/@id").intValue());
  }
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.