use of org.sirix.service.xml.xpath.XPathAxis in project sirix by sirixdb.
the class FunctionsXMarkTest method testElementAttributeInReturn.
/**
* Test <element attribute=""/> in return statement.
*
* @throws SirixXPathException
*/
@Ignore
@Test
public final void testElementAttributeInReturn() throws SirixXPathException {
final String query = "for $b in /site/open_auctions/open_auction/bidder[personref[@person=\"person2436\"]]/increase return <element attribute=\"{$b/text()}\"/>";
final String result = "<element attribute=\"12.00\"/><element attribute=\"12.00\"/>";
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 testFloor.
/**
* Test function floor().
*
* @throws SirixXPathException
*/
@Ignore
@Test
public final void testFloor() throws SirixXPathException {
final String query = "fn:floor(5.7)";
final String result = "5";
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 testExists.
/**
* Test function exists().
*
* @throws SirixXPathException
*/
@Ignore
@Test
public final void testExists() throws SirixXPathException {
final String query = "fn:exists( ('a', 'b', 'c') )";
final String result = "true";
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 testBoolean.
/**
* Test function boolean().
*
* @throws SirixXPathException
*/
@Ignore
@Test
public final void testBoolean() throws SirixXPathException {
final String query = "fn:boolean(0)";
final String result = "false";
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 testOneOrMore.
/**
* Test function one-or-more().
*
* @throws SirixXPathException
*/
@Ignore
@Test
public final void testOneOrMore() throws SirixXPathException {
final String query = "fn:one-or-more(\"a\")";
final String result = "a";
XPathStringChecker.testIAxisConventions(new XPathAxis(holder.getReader(), query), new String[] { result });
}
Aggregations