use of org.sirix.service.xml.xpath.XPathAxis in project sirix by sirixdb.
the class FunctionsXMarkTest method testData.
/**
* Test function data().
*
* @throws SirixXPathException
*/
@Ignore
@Test
public final void testData() throws SirixXPathException {
final String query = "for $b in /site/people/person[@id=\"person0\"] return fn:data($b/name)";
final String result = "Krishna Merle";
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 testText.
/**
* Test function text().
*
* @throws SirixXPathException
*/
@Ignore
@Test
public final void testText() throws SirixXPathException {
final String query = "for $b in /site/people/person[@id=\"person0\"] return $b/name/text()";
final String result = "Krishna Merle";
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 testSubstringAfter.
/**
* Test function substring-after().
*
* @throws SirixXPathException
*/
@Ignore
@Test
public final void testSubstringAfter() throws SirixXPathException {
final String query = "fn:substring-after(\"query\", \"u\")";
final String result = "ery";
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 testMax.
/**
* Test function max().
*
* @throws SirixXPathException
*/
@Ignore
@Test
public final void testMax() throws SirixXPathException {
final String query = "fn:max(for $i in /site/open_auctions/open_auction return $i/reserve/text())";
final String result = "4701.79";
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 testExactlyOne.
/**
* Test function exactly-one(). alternative query: exactly-one('a') -> result: a
*
* @throws SirixXPathException
*/
@Ignore
@Test
public final void testExactlyOne() throws SirixXPathException {
final String query = "exactly-one(/site/people/person[@id=\"person0\"]/name)";
final String result = "<name>Krishna Merle</name>";
XPathStringChecker.testIAxisConventions(new XPathAxis(holder.getReader(), query), new String[] { result });
}
Aggregations