Package com.alexgilleran.icesoap.xpath.elements

Examples of com.alexgilleran.icesoap.xpath.elements.XPathElement.matches()


        complexXPath3.toString());

    XPathElement xpathToMatch = XPathFactory.getInstance().compile("/xpath1/xpath2[@pred3=\"value3\"]/xpath3")
        .keySet().iterator().next();

    assertTrue(xpathToMatch.matches(complexXPath3));

    XPathElement xpathToNotMatch = XPathFactory.getInstance().compile("/xpath1/xpath2[@pred3=\"value4\"]/xpath3")
        .keySet().iterator().next();

    assertFalse(xpathToNotMatch.matches(complexXPath3));
View Full Code Here


    assertTrue(xpathToMatch.matches(complexXPath3));

    XPathElement xpathToNotMatch = XPathFactory.getInstance().compile("/xpath1/xpath2[@pred3=\"value4\"]/xpath3")
        .keySet().iterator().next();

    assertFalse(xpathToNotMatch.matches(complexXPath3));
  }
}
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.