Esempio n. 1
0
  public void testJAXEN160ToString() throws JaxenException, ParserConfigurationException {

    DOMXPath xpath = new DOMXPath("$var1/foo");
    Expr expr = xpath.getRootExpr();
    assertEquals(
        "[(DefaultPathExpr): [(DefaultVariableReferenceExpr): var1], [(DefaultRelativeLocationPath): [(DefaultNameStep): foo]]]",
        expr.toString());
  }
Esempio n. 2
0
  // http://jira.codehaus.org/browse/JAXEN-160
  public void testJAXEN160GetText() throws JaxenException, ParserConfigurationException {

    DOMXPath xpath = new DOMXPath("$var1/foo");
    Expr expr = xpath.getRootExpr();
    assertEquals("$var1/child::foo", expr.getText());
  }