use of org.sirix.service.xml.xpath.XPathAxis in project sirix by sirixdb.
the class FunctionsXMarkTest method testNumber.
/**
* Test function number().
*
* @throws SirixXPathException
*/
@Ignore
@Test
public final void testNumber() throws SirixXPathException {
final String query = "/site/open_auctions/open_auction/bidder[personref[@person=\"person2436\"]]/increase/number()";
final String result = "12 12";
XPathStringChecker.testIAxisConventions(new XPathAxis(holder.getReader(), query), new String[] { result });
}
use of org.sirix.service.xml.xpath.XPathAxis in project sirix by sirixdb.
the class FunctionsXMarkTest method testContains.
/**
* Test function contains().
*
* @throws SirixXPathException
*/
@Ignore
@Test
public final void testContains() throws SirixXPathException {
final String query = "/site/regions/*/item[contains(description,\"gold\")]/location[text()=\"El Salvador\"]";
final String result = "<location>El Salvador</location>";
XPathStringChecker.testIAxisConventions(new XPathAxis(holder.getReader(), query), new String[] { result });
}
use of org.sirix.service.xml.xpath.XPathAxis in project sirix by sirixdb.
the class XMarkBenchTest method xMarkTest_Q1.
@Test
public void xMarkTest_Q1() throws SirixXPathException {
String query = xmbq.getQuery(1, FACTOR);
String result = xmbq.getResult(1, FACTOR);
XPathStringChecker.testIAxisConventions(new XPathAxis(holder.getReader(), query), new String[] { result });
}
use of org.sirix.service.xml.xpath.XPathAxis in project sirix by sirixdb.
the class XMarkBenchTest method xMarkTest_Q7.
@Test
public void xMarkTest_Q7() throws SirixXPathException {
String query = xmbq.getQuery(7, FACTOR);
String result = xmbq.getResult(7, FACTOR);
XPathStringChecker.testIAxisConventions(new XPathAxis(holder.getReader(), query), new String[] { result });
}
use of org.sirix.service.xml.xpath.XPathAxis in project sirix by sirixdb.
the class XMarkBenchTest method xMarkTest_Q6.
@Test
public void xMarkTest_Q6() throws SirixXPathException {
String query = xmbq.getQuery(6, FACTOR);
String result = xmbq.getResult(6, FACTOR);
XPathStringChecker.testIAxisConventions(new XPathAxis(holder.getReader(), query), new String[] { result });
}
Aggregations