|
From: <et...@us...> - 2011-06-30 17:02:18
|
Revision: 4419
http://mxquery.svn.sourceforge.net/mxquery/?rev=4419&view=rev
Author: etterth
Date: 2011-06-30 17:02:08 +0000 (Thu, 30 Jun 2011)
Log Message:
-----------
- Added module import testing
Modified Paths:
--------------
trunk/MXQuery/xqib_src/ch/ethz/mxqjs/test/JsXQueryTestCase.java
trunk/XQIB_Testing/XQTStoJsUnit.xsl
trunk/XQIB_Testing/build.xml
trunk/XQIB_Testing/src/ch/ethz/mxquery/testsuite/XQueryTestCase.java
trunk/XQIB_Testing/test/ch/ethz/mxquery/Catalogclass.java
trunk/XQIB_Testing/test/ch/ethz/mxquery/MinimalConformance/Expressions/Construct/ComputeCon/ComputeConAttrclass.java
trunk/XQIB_Testing/test/ch/ethz/mxquery/MinimalConformance/Expressions/Construct/ComputeCon/ComputeConCommentclass.java
trunk/XQIB_Testing/test/ch/ethz/mxquery/MinimalConformance/Expressions/Construct/ComputeCon/ComputeConElemclass.java
trunk/XQIB_Testing/test/ch/ethz/mxquery/MinimalConformance/Expressions/Construct/ComputeCon/ComputeConPIclass.java
trunk/XQIB_Testing/test/ch/ethz/mxquery/MinimalConformance/Expressions/Construct/ComputeCon/ConDocNodeclass.java
trunk/XQIB_Testing/test/ch/ethz/mxquery/MinimalConformance/Expressions/Construct/DirectConElem/DirectConElemContentclass.java
trunk/XQIB_Testing/test/ch/ethz/mxquery/MinimalConformance/Expressions/FLWOR/ForExpr/ForExprWithclass.java
trunk/XQIB_Testing/test/ch/ethz/mxquery/MinimalConformance/Expressions/FLWOR/OrderbyExpr/OrderbyExprWithclass.java
trunk/XQIB_Testing/test/ch/ethz/mxquery/MinimalConformance/Expressions/Operators/SeqOp/SeqExceptclass.java
trunk/XQIB_Testing/test/ch/ethz/mxquery/MinimalConformance/Expressions/Operators/SeqOp/SeqIntersectclass.java
trunk/XQIB_Testing/test/ch/ethz/mxquery/MinimalConformance/Expressions/Operators/SeqOp/SeqUnionclass.java
trunk/XQIB_Testing/test/ch/ethz/mxquery/MinimalConformance/Functions/QNameFunc/LocalNameFromQNameFuncclass.java
trunk/XQIB_Testing/test/ch/ethz/mxquery/MinimalConformance/Functions/QNameFunc/NamespaceURIFromQNameFuncclass.java
trunk/XQIB_Testing/test/ch/ethz/mxquery/MinimalConformance/OptionalFeatureErrors/CombinedErrorCodesclass.java
trunk/XQIB_Testing/test/ch/ethz/mxquery/Optional/Modules/ModuleImportclass.java
trunk/XQIB_Testing/test/ch/ethz/mxquery/Optional/SchemaImport/ConstructSIclass.java
trunk/XQIB_Testing/test/ch/ethz/mxquery/Optional/SchemaImport/FLWORExprSIclass.java
trunk/XQIB_Testing/test/ch/ethz/mxquery/Optional/SchemaImport/ForExprTypeSIclass.java
trunk/XQIB_Testing/test/ch/ethz/mxquery/Optional/SchemaImport/MiscFunctionsclass.java
trunk/XQIB_Testing/test/ch/ethz/mxquery/Optional/SchemaImport/NotationEQSIclass.java
trunk/XQIB_Testing/test/ch/ethz/mxquery/Optional/SchemaImport/SchemaImportPrologclass.java
trunk/XQIB_Testing/test/ch/ethz/mxquery/Optional/SchemaImport/SeqExprCastSIclass.java
trunk/XQIB_Testing/test/ch/ethz/mxquery/Optional/SchemaValidation/ValidateExpressionclass.java
Modified: trunk/MXQuery/xqib_src/ch/ethz/mxqjs/test/JsXQueryTestCase.java
===================================================================
--- trunk/MXQuery/xqib_src/ch/ethz/mxqjs/test/JsXQueryTestCase.java 2011-06-30 14:18:19 UTC (rev 4418)
+++ trunk/MXQuery/xqib_src/ch/ethz/mxqjs/test/JsXQueryTestCase.java 2011-06-30 17:02:08 UTC (rev 4419)
@@ -62,6 +62,7 @@
private static native void n_setup(JsXQueryTestCase o) /*-{
o.addVariable = o....@ch....JsXQueryTestCase::addVariable(Ljava/lang/String;Ljava/lang/String;);
+ o.addModuleLocation = o....@ch....JsXQueryTestCase::addModuleLocation(Ljava/lang/String;Ljava/lang/String;);
o.execute = o....@ch....JsXQueryTestCase::execute();
o.getResult = o....@ch....JsXQueryTestCase::getResult();
o.getErrorCode = o....@ch....JsXQueryTestCase::getErrorCode();
@@ -94,6 +95,9 @@
try {
co.setSchemaAwareness(true);
+ for (NamespaceToUri module: moduleLocations) {
+ ctx.addModuleLocation(module.namespace, module.uri);
+ }
stat = comp.compile(ctx, query,co,null,null);
for (VariableWithUri var:variables){
Modified: trunk/XQIB_Testing/XQTStoJsUnit.xsl
===================================================================
--- trunk/XQIB_Testing/XQTStoJsUnit.xsl 2011-06-30 14:18:19 UTC (rev 4418)
+++ trunk/XQIB_Testing/XQTStoJsUnit.xsl 2011-06-30 17:02:08 UTC (rev 4419)
@@ -10,12 +10,12 @@
</xd:desc>
</xd:doc>
<xsl:variable name="outputpath">test/ch/ethz/mxquery</xsl:variable>
- <xsl:variable name="packageprefix">ch.ethz.mxquery.</xsl:variable>
+ <xsl:variable name="packageprefix">ch.ethz.mxquery</xsl:variable>
<xsl:variable name="testsuitepath"
>../MXQuery_Testing/tests</xsl:variable>
<xsl:variable name="executionpath"
>http://127.0.0.1:8090/test/tests</xsl:variable>
- <xsl:variable name="relativetestdir">tests/</xsl:variable>
+ <xsl:variable name="relativetestdir">http://127.0.0.1:8090/test/tests/</xsl:variable>
<xsl:template match="/">
<xsl:for-each select="test-suite/test-group">
<xsl:call-template name="test-group">
@@ -149,10 +149,10 @@
<xsl:param name="name"/>
<xsl:variable name="currentTestGroup" select="."/>
package <xsl:value-of select="$packageprefix"/><xsl:for-each
- select="ancestor::node()[local-name() = 'test-group']"><xsl:call-template
+ select="ancestor::node()[local-name() = 'test-group']"><xsl:if test="not(. is $currentTestGroup)"
+ >.</xsl:if><xsl:call-template
name="getJavaString"><xsl:with-param name="string" select="./@name"
- /></xsl:call-template><xsl:if test="empty(./child::node()[. is $currentTestGroup])"
- >.</xsl:if></xsl:for-each>;
+ /></xsl:call-template></xsl:for-each>;
import org.junit.Test;
import ch.ethz.mxquery.testsuite.XQueryTestBase;
import ch.ethz.mxquery.testsuite.XQueryTestCase;
@@ -167,10 +167,10 @@
String query = <xsl:call-template
name="getQuery"/>; <!-- module -->
XQueryTestCase testcase = new XQueryTestCase(driver,query); <xsl:for-each
- select="module">
+ select="module"><xsl:variable name="currentmodule" select="."/>
testcase.addModuleLocation("<xsl:value-of select="./@namespace"
/>", "<xsl:value-of
- select="concat($relativetestdir, 'TestSources/',./text(), '.xq')"/>"); </xsl:for-each>
+ select="concat($relativetestdir, root(.)//module[@ID = $currentmodule/text()]/@FileName, '.xq')"/>"); </xsl:for-each>
<!-- input-file -->
<xsl:for-each select="input-file"><xsl:variable name="sourceid" select="text()"/>
<xsl:variable name="source" select="//source[@ID = $sourceid]"/>
Modified: trunk/XQIB_Testing/build.xml
===================================================================
--- trunk/XQIB_Testing/build.xml 2011-06-30 14:18:19 UTC (rev 4418)
+++ trunk/XQIB_Testing/build.xml 2011-06-30 17:02:08 UTC (rev 4419)
@@ -90,10 +90,19 @@
<!--<pathelement location="${ECLIPSE_HOME}/plugins/org.hamcrest.core_1.1.0.v20090501071000.jar"/>-->
</path>
<property name="junit.output.dir" value="junit-out" />
+ <target name="aggregate">
+ <junitreport todir="${junit.output.dir}" tofile="report.xml">
+ <fileset dir="${junit.output.dir}">
+ <include name="TEST-*.xml"/>
+ </fileset>
+ <!--<report format="frames" todir="${junit.output.dir}" />-->
+ </junitreport>
+
+ </target>
<target name="testsuite">
<mkdir dir="${junit.output.dir}"/>
<junit fork="yes" printsummary="withOutAndErr">
- <formatter type="xml"/>
+ <formatter type="xml" />
<test name="ch.ethz.mxquery.Appendices.Annex_Eclass" todir="${junit.output.dir}"/>
<test name="ch.ethz.mxquery.Appendices.Appendix_A4class" todir="${junit.output.dir}"/>
<test name="ch.ethz.mxquery.Catalogclass" todir="${junit.output.dir}"/>
Modified: trunk/XQIB_Testing/src/ch/ethz/mxquery/testsuite/XQueryTestCase.java
===================================================================
--- trunk/XQIB_Testing/src/ch/ethz/mxquery/testsuite/XQueryTestCase.java 2011-06-30 14:18:19 UTC (rev 4418)
+++ trunk/XQIB_Testing/src/ch/ethz/mxquery/testsuite/XQueryTestCase.java 2011-06-30 17:02:08 UTC (rev 4419)
@@ -5,6 +5,7 @@
import org.openqa.selenium.remote.RemoteWebDriver;
+
public class XQueryTestCase {
class VariableWithUri {
@@ -61,6 +62,10 @@
driver.executeScript("window.testcase.addVariable(arguments[0],arguments[1])", new Object[] {var.name,var.uri});
}
+ for (NamespaceToUri module: moduleLocations) {
+ driver.executeScript("window.testcase.addModuleLocation(arguments[0],arguments[1])", new Object[] {module.namespace,module.uri});
+
+ }
driver.executeScript("window.testcase.execute()",new Object[0]);
}
Modified: trunk/XQIB_Testing/test/ch/ethz/mxquery/Catalogclass.java
===================================================================
--- trunk/XQIB_Testing/test/ch/ethz/mxquery/Catalogclass.java 2011-06-30 14:18:19 UTC (rev 4418)
+++ trunk/XQIB_Testing/test/ch/ethz/mxquery/Catalogclass.java 2011-06-30 17:02:08 UTC (rev 4419)
@@ -8,7 +8,7 @@
public void test_Catalog001() throws Exception{
String query = "(: Name: Catalog001 :)\n(: Description: test that most input files have variable references :)\n\n(: insert-start :)\ndeclare variable $input-context external;\n(: insert-end :)\n\n\n<missing-variable>{for $x in $input-context//*:input-file[count(@variable) = 0 and\n./text() != \"emptydoc\"] return string($x/../@name)}</missing-variable>";
XQueryTestCase testcase = new XQueryTestCase(driver,query);
- testcase.addSchemaMapping("http://www.w3.org/2005/02/query-test-XQTSCatalog", "tests/XQTSCatalog.xsd");
+ testcase.addSchemaMapping("http://www.w3.org/2005/02/query-test-XQTSCatalog", "http://127.0.0.1:8090/test/tests/XQTSCatalog.xsd");
testcase.addVariable("input-context",
"http://127.0.0.1:8090/test/tests/XQTSCatalog.xml", true);
testcase.execute();
@@ -26,7 +26,7 @@
public void test_Catalog002() throws Exception{
String query = "(: Name: Catalog002 :)\n(: Description: test all standard test cases have at least one output file :)\n\n(: insert-start :)\ndeclare variable $input-context external;\n(: insert-end :)\n\n<standard-no-outputfile>{$input-context//*:test-case[@scenario = \"standard\"][fn:count(*:output-file) = 0]/@name/string()}</standard-no-outputfile>\n";
XQueryTestCase testcase = new XQueryTestCase(driver,query);
- testcase.addSchemaMapping("http://www.w3.org/2005/02/query-test-XQTSCatalog", "tests/XQTSCatalog.xsd");
+ testcase.addSchemaMapping("http://www.w3.org/2005/02/query-test-XQTSCatalog", "http://127.0.0.1:8090/test/tests/XQTSCatalog.xsd");
testcase.addVariable("input-context",
"http://127.0.0.1:8090/test/tests/XQTSCatalog.xml", true);
testcase.execute();
@@ -44,7 +44,7 @@
public void test_Catalog003() throws Exception{
String query = "(: Name: Catalog003 :)\n(: Description: test all error test cases have at least one expected error :)\n\n(: insert-start :)\ndeclare variable $input-context external;\n(: insert-end :)\n\n<error-no-expected-error>{$input-context//*:test-case[@scenario = \"runtime-error\" or @scenario = \"parse-error\"][fn:count(*:expected-error) = 0 and fn:count(*:output-file[@compare = \"Inspect\"]) = 0]/@name/string()}</error-no-expected-error>";
XQueryTestCase testcase = new XQueryTestCase(driver,query);
- testcase.addSchemaMapping("http://www.w3.org/2005/02/query-test-XQTSCatalog", "tests/XQTSCatalog.xsd");
+ testcase.addSchemaMapping("http://www.w3.org/2005/02/query-test-XQTSCatalog", "http://127.0.0.1:8090/test/tests/XQTSCatalog.xsd");
testcase.addVariable("input-context",
"http://127.0.0.1:8090/test/tests/XQTSCatalog.xml", true);
testcase.execute();
Modified: trunk/XQIB_Testing/test/ch/ethz/mxquery/MinimalConformance/Expressions/Construct/ComputeCon/ComputeConAttrclass.java
===================================================================
--- trunk/XQIB_Testing/test/ch/ethz/mxquery/MinimalConformance/Expressions/Construct/ComputeCon/ComputeConAttrclass.java 2011-06-30 14:18:19 UTC (rev 4418)
+++ trunk/XQIB_Testing/test/ch/ethz/mxquery/MinimalConformance/Expressions/Construct/ComputeCon/ComputeConAttrclass.java 2011-06-30 17:02:08 UTC (rev 4419)
@@ -234,7 +234,7 @@
public void test_Constr_compattr_compname_8() throws Exception{
String query = "(: Name: Constr-compattr-compname-8 :)\n(: Written by: Andreas Behm :)\n(: Description: NCName as name :)\n\n(: insert-start :)\ndeclare variable $input-context external;\n(: insert-end :)\n\nelement elem {attribute {$input-context//*:NCName} {'text'}}\n";
XQueryTestCase testcase = new XQueryTestCase(driver,query);
- testcase.addSchemaMapping("http://www.w3.org/XQueryTest", "tests/TestSources/atomic.xsd");
+ testcase.addSchemaMapping("http://www.w3.org/XQueryTest", "http://127.0.0.1:8090/test/tests/TestSources/atomic.xsd");
testcase.addVariable("input-context",
"http://127.0.0.1:8090/test/tests/TestSources/atomic.xml", true);
testcase.execute();
Modified: trunk/XQIB_Testing/test/ch/ethz/mxquery/MinimalConformance/Expressions/Construct/ComputeCon/ComputeConCommentclass.java
===================================================================
--- trunk/XQIB_Testing/test/ch/ethz/mxquery/MinimalConformance/Expressions/Construct/ComputeCon/ComputeConCommentclass.java 2011-06-30 14:18:19 UTC (rev 4418)
+++ trunk/XQIB_Testing/test/ch/ethz/mxquery/MinimalConformance/Expressions/Construct/ComputeCon/ComputeConCommentclass.java 2011-06-30 17:02:08 UTC (rev 4419)
@@ -284,7 +284,7 @@
public void test_Constr_compcomment_dash_4() throws Exception{
String query = "(: Name: Constr-compcomment-dash-4 :)\n(: Written by: Andreas Behm :)\n(: Description: dash at the end of content - :)\n\n(: insert-start :)\ndeclare variable $input-context external;\n(: insert-end :)\n\ncomment {$input-context//*:test-case[@name=\"Constr-compcomment-dash-4\"]/*:description}\n";
XQueryTestCase testcase = new XQueryTestCase(driver,query);
- testcase.addSchemaMapping("http://www.w3.org/2005/02/query-test-XQTSCatalog", "tests/XQTSCatalog.xsd");
+ testcase.addSchemaMapping("http://www.w3.org/2005/02/query-test-XQTSCatalog", "http://127.0.0.1:8090/test/tests/XQTSCatalog.xsd");
testcase.addVariable("input-context",
"http://127.0.0.1:8090/test/tests/XQTSCatalog.xml", true);
testcase.execute();
@@ -381,7 +381,7 @@
public void test_Constr_compcomment_doubledash_4() throws Exception{
String query = "(: Name: Constr-compcomment-doubledash-4 :)\n(: Written by: Andreas Behm :)\n(: Description: double dash -- in content :)\n\n(: insert-start :)\ndeclare variable $input-context external;\n(: insert-end :)\n\ncomment {$input-context//*:test-case[@name=\"Constr-compcomment-doubledash-4\"]/*:description}\n";
XQueryTestCase testcase = new XQueryTestCase(driver,query);
- testcase.addSchemaMapping("http://www.w3.org/2005/02/query-test-XQTSCatalog", "tests/XQTSCatalog.xsd");
+ testcase.addSchemaMapping("http://www.w3.org/2005/02/query-test-XQTSCatalog", "http://127.0.0.1:8090/test/tests/XQTSCatalog.xsd");
testcase.addVariable("input-context",
"http://127.0.0.1:8090/test/tests/XQTSCatalog.xml", true);
testcase.execute();
Modified: trunk/XQIB_Testing/test/ch/ethz/mxquery/MinimalConformance/Expressions/Construct/ComputeCon/ComputeConElemclass.java
===================================================================
--- trunk/XQIB_Testing/test/ch/ethz/mxquery/MinimalConformance/Expressions/Construct/ComputeCon/ComputeConElemclass.java 2011-06-30 14:18:19 UTC (rev 4418)
+++ trunk/XQIB_Testing/test/ch/ethz/mxquery/MinimalConformance/Expressions/Construct/ComputeCon/ComputeConElemclass.java 2011-06-30 17:02:08 UTC (rev 4419)
@@ -234,7 +234,7 @@
public void test_Constr_compelem_compname_8() throws Exception{
String query = "(: Name: Constr-compelem-compname-8 :)\n(: Written by: Andreas Behm :)\n(: Description: NCName as name :)\n\n(: insert-start :)\ndeclare variable $input-context external;\n(: insert-end :)\n\nelement {$input-context//*:NCName} {'text'}\n";
XQueryTestCase testcase = new XQueryTestCase(driver,query);
- testcase.addSchemaMapping("http://www.w3.org/XQueryTest", "tests/TestSources/atomic.xsd");
+ testcase.addSchemaMapping("http://www.w3.org/XQueryTest", "http://127.0.0.1:8090/test/tests/TestSources/atomic.xsd");
testcase.addVariable("input-context",
"http://127.0.0.1:8090/test/tests/TestSources/atomic.xml", true);
testcase.execute();
Modified: trunk/XQIB_Testing/test/ch/ethz/mxquery/MinimalConformance/Expressions/Construct/ComputeCon/ComputeConPIclass.java
===================================================================
--- trunk/XQIB_Testing/test/ch/ethz/mxquery/MinimalConformance/Expressions/Construct/ComputeCon/ComputeConPIclass.java 2011-06-30 14:18:19 UTC (rev 4418)
+++ trunk/XQIB_Testing/test/ch/ethz/mxquery/MinimalConformance/Expressions/Construct/ComputeCon/ComputeConPIclass.java 2011-06-30 17:02:08 UTC (rev 4419)
@@ -217,7 +217,7 @@
public void test_Constr_comppi_compname_8() throws Exception{
String query = "(: Name: Constr-comppi-compname-8 :)\n(: Written by: Andreas Behm :)\n(: Description: NCName as name :)\n\n(: insert-start :)\ndeclare variable $input-context external;\n(: insert-end :)\n\nprocessing-instruction {$input-context//*:NCName} {'text'}\n";
XQueryTestCase testcase = new XQueryTestCase(driver,query);
- testcase.addSchemaMapping("http://www.w3.org/XQueryTest", "tests/TestSources/atomic.xsd");
+ testcase.addSchemaMapping("http://www.w3.org/XQueryTest", "http://127.0.0.1:8090/test/tests/TestSources/atomic.xsd");
testcase.addVariable("input-context",
"http://127.0.0.1:8090/test/tests/TestSources/atomic.xml", true);
testcase.execute();
@@ -235,7 +235,7 @@
public void test_Constr_comppi_compname_9() throws Exception{
String query = "(: Name: Constr-comppi-compname-9 :)\n(: Written by: Andreas Behm :)\n(: Description: QName as name :)\n\n(: insert-start :)\ndeclare variable $input-context external;\n(: insert-end :)\n\nprocessing-instruction {$input-context//*:QName} {'text'}\n";
XQueryTestCase testcase = new XQueryTestCase(driver,query);
- testcase.addSchemaMapping("http://www.w3.org/XQueryTest", "tests/TestSources/atomic.xsd");
+ testcase.addSchemaMapping("http://www.w3.org/XQueryTest", "http://127.0.0.1:8090/test/tests/TestSources/atomic.xsd");
testcase.addVariable("input-context",
"http://127.0.0.1:8090/test/tests/TestSources/atomic.xml", true);
testcase.execute();
Modified: trunk/XQIB_Testing/test/ch/ethz/mxquery/MinimalConformance/Expressions/Construct/ComputeCon/ConDocNodeclass.java
===================================================================
--- trunk/XQIB_Testing/test/ch/ethz/mxquery/MinimalConformance/Expressions/Construct/ComputeCon/ConDocNodeclass.java 2011-06-30 14:18:19 UTC (rev 4418)
+++ trunk/XQIB_Testing/test/ch/ethz/mxquery/MinimalConformance/Expressions/Construct/ComputeCon/ConDocNodeclass.java 2011-06-30 17:02:08 UTC (rev 4419)
@@ -229,7 +229,7 @@
public void test_Constr_docnode_constrmod_1() throws Exception{
String query = "(: Name: Constr-docnode-constrmod-1 :)\n(: Written by: Andreas Behm :)\n(: Description: strip IDREFS type :)\n\ndeclare construction strip;\n\n(: insert-start :)\ndeclare variable $input-context external;\n(: insert-end :)\n\nfn:count(fn:data((document {$input-context//*:idrefs})/*))\n";
XQueryTestCase testcase = new XQueryTestCase(driver,query);
- testcase.addSchemaMapping("http://www.w3.org/XQueryTest", "tests/TestSources/atomic.xsd");
+ testcase.addSchemaMapping("http://www.w3.org/XQueryTest", "http://127.0.0.1:8090/test/tests/TestSources/atomic.xsd");
testcase.addVariable("input-context",
"http://127.0.0.1:8090/test/tests/TestSources/atomic.xml", true);
testcase.execute();
@@ -247,7 +247,7 @@
public void test_Constr_docnode_constrmod_2() throws Exception{
String query = "(: Name: Constr-docnode-constrmod-2 :)\n(: Written by: Andreas Behm :)\n(: Description: preserve IDREFS type :)\n\ndeclare construction preserve;\n\n(: insert-start :)\ndeclare variable $input-context external;\n(: insert-end :)\n\nfn:count(fn:data((document {$input-context//*:idrefs})/*))\n";
XQueryTestCase testcase = new XQueryTestCase(driver,query);
- testcase.addSchemaMapping("http://www.w3.org/XQueryTest", "tests/TestSources/atomic.xsd");
+ testcase.addSchemaMapping("http://www.w3.org/XQueryTest", "http://127.0.0.1:8090/test/tests/TestSources/atomic.xsd");
testcase.addVariable("input-context",
"http://127.0.0.1:8090/test/tests/TestSources/atomic.xml", true);
testcase.execute();
@@ -265,7 +265,7 @@
public void test_Constr_docnode_constrmod_3() throws Exception{
String query = "(: Name: Constr-docnode-constrmod-3 :)\n(: Written by: Andreas Behm :)\n(: Description: strip decimal type :)\n\ndeclare construction strip;\n\n(: insert-start :)\ndeclare variable $input-context external;\n(: insert-end :)\n\n(document {$input-context//*:decimal})/* cast as xs:integer\n";
XQueryTestCase testcase = new XQueryTestCase(driver,query);
- testcase.addSchemaMapping("http://www.w3.org/XQueryTest", "tests/TestSources/atomic.xsd");
+ testcase.addSchemaMapping("http://www.w3.org/XQueryTest", "http://127.0.0.1:8090/test/tests/TestSources/atomic.xsd");
testcase.addVariable("input-context",
"http://127.0.0.1:8090/test/tests/TestSources/atomic.xml", true);
testcase.execute();
@@ -290,7 +290,7 @@
public void test_Constr_docnode_constrmod_4() throws Exception{
String query = "(: Name: Constr-docnode-constrmod-4 :)\n(: Written by: Andreas Behm :)\n(: Description: preserve decimal type :)\n\ndeclare construction preserve;\n\n(: insert-start :)\ndeclare variable $input-context external;\n(: insert-end :)\n\n(document {$input-context//*:decimal})/* cast as xs:integer\n\n";
XQueryTestCase testcase = new XQueryTestCase(driver,query);
- testcase.addSchemaMapping("http://www.w3.org/XQueryTest", "tests/TestSources/atomic.xsd");
+ testcase.addSchemaMapping("http://www.w3.org/XQueryTest", "http://127.0.0.1:8090/test/tests/TestSources/atomic.xsd");
testcase.addVariable("input-context",
"http://127.0.0.1:8090/test/tests/TestSources/atomic.xml", true);
testcase.execute();
Modified: trunk/XQIB_Testing/test/ch/ethz/mxquery/MinimalConformance/Expressions/Construct/DirectConElem/DirectConElemContentclass.java
===================================================================
--- trunk/XQIB_Testing/test/ch/ethz/mxquery/MinimalConformance/Expressions/Construct/DirectConElem/DirectConElemContentclass.java 2011-06-30 14:18:19 UTC (rev 4418)
+++ trunk/XQIB_Testing/test/ch/ethz/mxquery/MinimalConformance/Expressions/Construct/DirectConElem/DirectConElemContentclass.java 2011-06-30 17:02:08 UTC (rev 4419)
@@ -604,7 +604,7 @@
public void test_Constr_cont_constrmod_1() throws Exception{
String query = "(: Name: Constr-cont-constrmod-1 :)\n(: Written by: Andreas Behm :)\n(: Description: strip IDREFS type :)\n\ndeclare construction strip;\n\n(: insert-start :)\ndeclare variable $input-context external;\n(: insert-end :)\n\nfn:count(fn:data(<elem>{$input-context//*:idrefs}</elem>/*))\n";
XQueryTestCase testcase = new XQueryTestCase(driver,query);
- testcase.addSchemaMapping("http://www.w3.org/XQueryTest", "tests/TestSources/atomic.xsd");
+ testcase.addSchemaMapping("http://www.w3.org/XQueryTest", "http://127.0.0.1:8090/test/tests/TestSources/atomic.xsd");
testcase.addVariable("input-context",
"http://127.0.0.1:8090/test/tests/TestSources/atomic.xml", true);
testcase.execute();
@@ -622,7 +622,7 @@
public void test_Constr_cont_constrmod_2() throws Exception{
String query = "(: Name: Constr-cont-constrmod-2 :)\n(: Written by: Andreas Behm :)\n(: Description: preserve IDREFS type :)\n\ndeclare construction preserve;\n\n(: insert-start :)\ndeclare variable $input-context external;\n(: insert-end :)\n\nfn:count(fn:data(<elem>{$input-context//*:idrefs}</elem>/*))\n";
XQueryTestCase testcase = new XQueryTestCase(driver,query);
- testcase.addSchemaMapping("http://www.w3.org/XQueryTest", "tests/TestSources/atomic.xsd");
+ testcase.addSchemaMapping("http://www.w3.org/XQueryTest", "http://127.0.0.1:8090/test/tests/TestSources/atomic.xsd");
testcase.addVariable("input-context",
"http://127.0.0.1:8090/test/tests/TestSources/atomic.xml", true);
testcase.execute();
@@ -640,7 +640,7 @@
public void test_Constr_cont_constrmod_3() throws Exception{
String query = "(: Name: Constr-cont-constrmod-3 :)\n(: Written by: Andreas Behm :)\n(: Description: strip decimal type :)\n\ndeclare construction strip;\n\n(: insert-start :)\ndeclare variable $input-context external;\n(: insert-end :)\n\n<elem>{$input-context//*:decimal}</elem>/* cast as xs:integer\n";
XQueryTestCase testcase = new XQueryTestCase(driver,query);
- testcase.addSchemaMapping("http://www.w3.org/XQueryTest", "tests/TestSources/atomic.xsd");
+ testcase.addSchemaMapping("http://www.w3.org/XQueryTest", "http://127.0.0.1:8090/test/tests/TestSources/atomic.xsd");
testcase.addVariable("input-context",
"http://127.0.0.1:8090/test/tests/TestSources/atomic.xml", true);
testcase.execute();
@@ -665,7 +665,7 @@
public void test_Constr_cont_constrmod_4() throws Exception{
String query = "(: Name: Constr-cont-constrmod-4 :)\n(: Written by: Andreas Behm :)\n(: Description: preserve decimal type :)\n\ndeclare construction preserve;\n\n(: insert-start :)\ndeclare variable $input-context external;\n(: insert-end :)\n\n<elem>{$input-context//*:decimal}</elem>/* cast as xs:integer\n\n";
XQueryTestCase testcase = new XQueryTestCase(driver,query);
- testcase.addSchemaMapping("http://www.w3.org/XQueryTest", "tests/TestSources/atomic.xsd");
+ testcase.addSchemaMapping("http://www.w3.org/XQueryTest", "http://127.0.0.1:8090/test/tests/TestSources/atomic.xsd");
testcase.addVariable("input-context",
"http://127.0.0.1:8090/test/tests/TestSources/atomic.xml", true);
testcase.execute();
@@ -686,7 +686,7 @@
public void test_Constr_cont_constrmod_5() throws Exception{
String query = "(: Name: Constr-cont-constrmod-5 :)\n(: Written by: Andreas Behm :)\n(: Description: strip IDREFS type in attribute :)\n\ndeclare construction strip;\n\n(: insert-start :)\ndeclare variable $input-context external;\n(: insert-end :)\n\nfn:count(fn:data((<elem>{$input-context//*:idrefs/@*:attr}</elem>)/@*:attr))\n";
XQueryTestCase testcase = new XQueryTestCase(driver,query);
- testcase.addSchemaMapping("http://www.w3.org/XQueryTest", "tests/TestSources/atomic.xsd");
+ testcase.addSchemaMapping("http://www.w3.org/XQueryTest", "http://127.0.0.1:8090/test/tests/TestSources/atomic.xsd");
testcase.addVariable("input-context",
"http://127.0.0.1:8090/test/tests/TestSources/atomic.xml", true);
testcase.execute();
@@ -704,7 +704,7 @@
public void test_Constr_cont_constrmod_6() throws Exception{
String query = "(: Name: Constr-cont-constrmod-6 :)\n(: Written by: Andreas Behm :)\n(: Description: preserve IDREFS type in attribute :)\n\ndeclare construction preserve;\n\n(: insert-start :)\ndeclare variable $input-context external;\n(: insert-end :)\n\nfn:count(fn:data((<elem>{$input-context//*:idrefs/@*:attr}</elem>)/@*:attr))\n";
XQueryTestCase testcase = new XQueryTestCase(driver,query);
- testcase.addSchemaMapping("http://www.w3.org/XQueryTest", "tests/TestSources/atomic.xsd");
+ testcase.addSchemaMapping("http://www.w3.org/XQueryTest", "http://127.0.0.1:8090/test/tests/TestSources/atomic.xsd");
testcase.addVariable("input-context",
"http://127.0.0.1:8090/test/tests/TestSources/atomic.xml", true);
testcase.execute();
@@ -722,7 +722,7 @@
public void test_Constr_cont_constrmod_7() throws Exception{
String query = "(: Name: Constr-cont-constrmod-7 :)\n(: Written by: Andreas Behm :)\n(: Description: strip decimal type in attribute :)\n\ndeclare construction strip;\n\n(: insert-start :)\ndeclare variable $input-context external;\n(: insert-end :)\n\n(<elem>{$input-context//*:decimal/@*:attr}</elem>)/@*:attr cast as xs:integer\n";
XQueryTestCase testcase = new XQueryTestCase(driver,query);
- testcase.addSchemaMapping("http://www.w3.org/XQueryTest", "tests/TestSources/atomic.xsd");
+ testcase.addSchemaMapping("http://www.w3.org/XQueryTest", "http://127.0.0.1:8090/test/tests/TestSources/atomic.xsd");
testcase.addVariable("input-context",
"http://127.0.0.1:8090/test/tests/TestSources/atomic.xml", true);
testcase.execute();
@@ -747,7 +747,7 @@
public void test_Constr_cont_constrmod_8() throws Exception{
String query = "(: Name: Constr-cont-constrmod-8 :)\n(: Written by: Andreas Behm :)\n(: Description: preserve decimal type in attribute :)\n\ndeclare construction preserve;\n\n(: insert-start :)\ndeclare variable $input-context external;\n(: insert-end :)\n\n(<elem>{$input-context//*:decimal/@*:attr}</elem>)/@*:attr cast as xs:integer\n\n";
XQueryTestCase testcase = new XQueryTestCase(driver,query);
- testcase.addSchemaMapping("http://www.w3.org/XQueryTest", "tests/TestSources/atomic.xsd");
+ testcase.addSchemaMapping("http://www.w3.org/XQueryTest", "http://127.0.0.1:8090/test/tests/TestSources/atomic.xsd");
testcase.addVariable("input-context",
"http://127.0.0.1:8090/test/tests/TestSources/atomic.xml", true);
testcase.execute();
@@ -836,7 +836,7 @@
public void test_Constr_cont_nsmode_5() throws Exception{
String query = "(: Name: Constr-cont-nsmode-5 :)\n(: Written by: Andreas Behm :)\n(: Description: Copy namespace sensitive content :)\n\ndeclare copy-namespaces no-preserve, inherit;\ndeclare construction preserve;\n\n(: insert-start :)\ndeclare variable $input-context external;\n(: insert-end :)\n\n<new>{ $input-context//*:QName }</new>\n";
XQueryTestCase testcase = new XQueryTestCase(driver,query);
- testcase.addSchemaMapping("http://www.w3.org/XQueryTest", "tests/TestSources/atomic.xsd");
+ testcase.addSchemaMapping("http://www.w3.org/XQueryTest", "http://127.0.0.1:8090/test/tests/TestSources/atomic.xsd");
testcase.addVariable("input-context",
"http://127.0.0.1:8090/test/tests/TestSources/atomic.xml", true);
testcase.execute();
@@ -857,7 +857,7 @@
public void test_Constr_cont_nsmode_6() throws Exception{
String query = "(: Name: Constr-cont-nsmode-6 :)\n(: Written by: Andreas Behm :)\n(: Description: Copy namespace sensitive content :)\n\ndeclare copy-namespaces no-preserve, no-inherit;\ndeclare construction preserve;\n\n(: insert-start :)\ndeclare variable $input-context external;\n(: insert-end :)\n\n<new>{ $input-context//*:QName }</new>\n";
XQueryTestCase testcase = new XQueryTestCase(driver,query);
- testcase.addSchemaMapping("http://www.w3.org/XQueryTest", "tests/TestSources/atomic.xsd");
+ testcase.addSchemaMapping("http://www.w3.org/XQueryTest", "http://127.0.0.1:8090/test/tests/TestSources/atomic.xsd");
testcase.addVariable("input-context",
"http://127.0.0.1:8090/test/tests/TestSources/atomic.xml", true);
testcase.execute();
Modified: trunk/XQIB_Testing/test/ch/ethz/mxquery/MinimalConformance/Expressions/FLWOR/ForExpr/ForExprWithclass.java
===================================================================
--- trunk/XQIB_Testing/test/ch/ethz/mxquery/MinimalConformance/Expressions/FLWOR/ForExpr/ForExprWithclass.java 2011-06-30 14:18:19 UTC (rev 4418)
+++ trunk/XQIB_Testing/test/ch/ethz/mxquery/MinimalConformance/Expressions/FLWOR/ForExpr/ForExprWithclass.java 2011-06-30 17:02:08 UTC (rev 4419)
@@ -165,7 +165,7 @@
public void test_ForExprType009() throws Exception{
String query = "(: Name: ForExprType009 :)\n(: Description: FLWOR with type expression matching a user defined type :)\n\ndeclare namespace xqt=\"http://www.w3.org/XQueryTestOrderBy\";\n\n(: insert-start :)\ndeclare variable $input-context external;\n(: insert-end :)\n\nfor $num as element(xqt:NegativeNumbers) in $input-context/xqt:DataValues/xqt:NegativeNumbers\nreturn $num";
XQueryTestCase testcase = new XQueryTestCase(driver,query);
- testcase.addSchemaMapping("http://www.w3.org/XQueryTestOrderBy", "tests/TestSources/orderData.xsd");
+ testcase.addSchemaMapping("http://www.w3.org/XQueryTestOrderBy", "http://127.0.0.1:8090/test/tests/TestSources/orderData.xsd");
testcase.addVariable("input-context",
"http://127.0.0.1:8090/test/tests/TestSources/orderData.xml", true);
testcase.execute();
@@ -183,7 +183,7 @@
public void test_ForExprType011() throws Exception{
String query = "(: Name: ForExprType011 :)\n(: Description: FLWOR with type expression referencing an unknown type :)\n\ndeclare namespace xqt=\"http://www.w3.org/XQueryTestOrderBy\";\n\n(: insert-start :)\ndeclare variable $input-context external;\n(: insert-end :)\n\nfor $num as xs:undefinedType in data( $input-context/xqt:DataValues/xqt:NegativeNumbers/xqt:orderData )\nreturn $num";
XQueryTestCase testcase = new XQueryTestCase(driver,query);
- testcase.addSchemaMapping("http://www.w3.org/XQueryTestOrderBy", "tests/TestSources/orderData.xsd");
+ testcase.addSchemaMapping("http://www.w3.org/XQueryTestOrderBy", "http://127.0.0.1:8090/test/tests/TestSources/orderData.xsd");
testcase.addVariable("input-context",
"http://127.0.0.1:8090/test/tests/TestSources/orderData.xml", true);
testcase.execute();
@@ -232,7 +232,7 @@
public void test_ForExprType013() throws Exception{
String query = "(: Name: ForExprType013 :)\n(: Description: Type declaration containing multiple 'as' keywords :)\n\ndeclare namespace xqt=\"http://www.w3.org/XQueryTestOrderBy\";\n\n(: insert-start :)\ndeclare variable $input-context external;\n(: insert-end :)\n\nfor $num as xs:decimal as xs:decimal in data( $input-context/xqt:DataValues/xqt:NegativeNumbers/xqt:orderData )\nreturn $num\n";
XQueryTestCase testcase = new XQueryTestCase(driver,query);
- testcase.addSchemaMapping("http://www.w3.org/XQueryTestOrderBy", "tests/TestSources/orderData.xsd");
+ testcase.addSchemaMapping("http://www.w3.org/XQueryTestOrderBy", "http://127.0.0.1:8090/test/tests/TestSources/orderData.xsd");
testcase.addVariable("input-context",
"http://127.0.0.1:8090/test/tests/TestSources/orderData.xml", true);
testcase.execute();
@@ -257,7 +257,7 @@
public void test_ForExprType014() throws Exception{
String query = "(: Name: ForExprType014 :)\n(: Description: Type expression value is void. This will never match anything bound to a variable by a FLWOR statement :)\n\ndeclare namespace xqt=\"http://www.w3.org/XQueryTestOrderBy\";\n\n(: insert-start :)\ndeclare variable $input-context external;\n(: insert-end :)\n\nfor $num as empty-sequence() in data( $input-context/xqt:DataValues/xqt:NegativeNumbers/xqt:orderData )\nreturn $num\n";
XQueryTestCase testcase = new XQueryTestCase(driver,query);
- testcase.addSchemaMapping("http://www.w3.org/XQueryTestOrderBy", "tests/TestSources/orderData.xsd");
+ testcase.addSchemaMapping("http://www.w3.org/XQueryTestOrderBy", "http://127.0.0.1:8090/test/tests/TestSources/orderData.xsd");
testcase.addVariable("input-context",
"http://127.0.0.1:8090/test/tests/TestSources/orderData.xml", true);
testcase.execute();
@@ -408,7 +408,7 @@
public void test_ForExprType022() throws Exception{
String query = "(: Name: ForExprType022 :)\n(: Description: FLWOR expressions with type declaration (attribute type). Simple attribute wildcard :)\n\n(: insert-start :)\ndeclare default element namespace \"http://typedecl\";\n\ndeclare variable $input-context external;\n(: insert-end :)\n\nfor $test as attribute(*) in ( $input-context/root/InterleaveType2/@integer, $input-context/root/InterleaveType2/@decimal )\nreturn data( $test )";
XQueryTestCase testcase = new XQueryTestCase(driver,query);
- testcase.addSchemaMapping("http://typedecl", "tests/TestSources/SpecialTypes.xsd");
+ testcase.addSchemaMapping("http://typedecl", "http://127.0.0.1:8090/test/tests/TestSources/SpecialTypes.xsd");
testcase.addVariable("input-context",
"http://127.0.0.1:8090/test/tests/TestSources/SpecialTypes.xml", true);
testcase.execute();
@@ -426,7 +426,7 @@
public void test_ForExprType023() throws Exception{
String query = "(: Name: ForExprType023 :)\n(: Description: FLWOR expressions with type declaration (attribute type). Simple attribute name test (no type) :)\n\n(: insert-start :)\ndeclare default element namespace \"http://typedecl\";\n\ndeclare variable $input-context external;\n(: insert-end :)\n\nfor $test as attribute(integer) in ( $input-context/root/InterleaveType2/@integer )\nreturn data( $test )\n";
XQueryTestCase testcase = new XQueryTestCase(driver,query);
- testcase.addSchemaMapping("http://typedecl", "tests/TestSources/SpecialTypes.xsd");
+ testcase.addSchemaMapping("http://typedecl", "http://127.0.0.1:8090/test/tests/TestSources/SpecialTypes.xsd");
testcase.addVariable("input-context",
"http://127.0.0.1:8090/test/tests/TestSources/SpecialTypes.xml", true);
testcase.execute();
@@ -444,7 +444,7 @@
public void test_ForExprType024() throws Exception{
String query = "(: Name: ForExprType024 :)\n(: Description: FLWOR expressions with type declaration (attribute type). anySimpleType attribute :)\n\n(: insert-start :)\ndeclare default element namespace \"http://typedecl\";\n\ndeclare variable $input-context external;\n(: insert-end :)\n\nfor $test as attribute(att, xs:anySimpleType) in $input-context/root/anyAtomicType/@att\nreturn data( $test )\n";
XQueryTestCase testcase = new XQueryTestCase(driver,query);
- testcase.addSchemaMapping("http://typedecl", "tests/TestSources/SpecialTypes.xsd");
+ testcase.addSchemaMapping("http://typedecl", "http://127.0.0.1:8090/test/tests/TestSources/SpecialTypes.xsd");
testcase.addVariable("input-context",
"http://127.0.0.1:8090/test/tests/TestSources/SpecialTypes.xml", true);
testcase.execute();
@@ -598,7 +598,7 @@
public void test_ForExprType036() throws Exception{
String query = "(: Name: ForExprType036 :)\n(: Description: FLWOR expressions with type declaration (element type). Simple element wildcard :)\n\n(: insert-start :)\ndeclare default element namespace \"http://typedecl\";\n\ndeclare variable $input-context external;\n(: insert-end :)\n\nfor $test as element(*) in $input-context/root/InterleaveType/*\nreturn $test";
XQueryTestCase testcase = new XQueryTestCase(driver,query);
- testcase.addSchemaMapping("http://typedecl", "tests/TestSources/SpecialTypes.xsd");
+ testcase.addSchemaMapping("http://typedecl", "http://127.0.0.1:8090/test/tests/TestSources/SpecialTypes.xsd");
testcase.addVariable("input-context",
"http://127.0.0.1:8090/test/tests/TestSources/SpecialTypes.xml", true);
testcase.execute();
@@ -616,7 +616,7 @@
public void test_ForExprType045() throws Exception{
String query = "(: Name: ForExprType045 :)\n(: Description: FLWOR expressions with type declaration. Unknown Type :)\n\nfor $test as xs:unknownType in ( 1, 2, 3)\nreturn $test";
XQueryTestCase testcase = new XQueryTestCase(driver,query);
- testcase.addSchemaMapping("http://typedecl", "tests/TestSources/SpecialTypes.xsd");
+ testcase.addSchemaMapping("http://typedecl", "http://127.0.0.1:8090/test/tests/TestSources/SpecialTypes.xsd");
testcase.addVariable("input-context",
"http://127.0.0.1:8090/test/tests/TestSources/SpecialTypes.xml", true);
testcase.execute();
@@ -641,7 +641,7 @@
public void test_ForExprType046() throws Exception{
String query = "(: Name: ForExprType046 :)\n(: Description: FLWOR expressions with type declaration. Attempt to promote xs:decimal | xs:double | xs:integer - no common subtype :)\n\nfor $test as xs:double in ( 1, 1e2, 0.3 )\nreturn $test";
XQueryTestCase testcase = new XQueryTestCase(driver,query);
- testcase.addSchemaMapping("http://typedecl", "tests/TestSources/SpecialTypes.xsd");
+ testcase.addSchemaMapping("http://typedecl", "http://127.0.0.1:8090/test/tests/TestSources/SpecialTypes.xsd");
testcase.addVariable("input-context",
"http://127.0.0.1:8090/test/tests/TestSources/SpecialTypes.xml", true);
testcase.execute();
@@ -666,7 +666,7 @@
public void test_ForExprType047() throws Exception{
String query = "(: Name: ForExprType047 :)\n(: Description: FLWOR expressions with type declaration. Test matching no atomic simple types :)\n\nfor $test as xs:NMTOKENS in ( xs:NMTOKEN(\"ab\"), xs:NMTOKEN(\"cd\") )\nreturn $test";
XQueryTestCase testcase = new XQueryTestCase(driver,query);
- testcase.addSchemaMapping("http://typedecl", "tests/TestSources/SpecialTypes.xsd");
+ testcase.addSchemaMapping("http://typedecl", "http://127.0.0.1:8090/test/tests/TestSources/SpecialTypes.xsd");
testcase.addVariable("input-context",
"http://127.0.0.1:8090/test/tests/TestSources/SpecialTypes.xml", true);
testcase.execute();
Modified: trunk/XQIB_Testing/test/ch/ethz/mxquery/MinimalConformance/Expressions/FLWOR/OrderbyExpr/OrderbyExprWithclass.java
===================================================================
--- trunk/XQIB_Testing/test/ch/ethz/mxquery/MinimalConformance/Expressions/FLWOR/OrderbyExpr/OrderbyExprWithclass.java 2011-06-30 14:18:19 UTC (rev 4418)
+++ trunk/XQIB_Testing/test/ch/ethz/mxquery/MinimalConformance/Expressions/FLWOR/OrderbyExpr/OrderbyExprWithclass.java 2011-06-30 17:02:08 UTC (rev 4419)
@@ -8,7 +8,7 @@
public void test_orderBy1() throws Exception{
String query = "declare default element namespace \"http://www.w3.org/XQueryTestOrderBy\";\n(: name : orderBy1 :)\n(: description : Evaluation of \"order by\" clause with the \"order by\" clause of a FLWR expression set to \"$x \", where $x is a set of Strings and the ordering mode set to ascending :)\n\n(: insert-start :)\ndeclare variable $input-context1 external;\n(: insert-end :)\n\n<results> {\nfor $x in $input-context1/DataValues/Strings/orderData\n order by $x ascending return $x\n}\n</results>\n";
XQueryTestCase testcase = new XQueryTestCase(driver,query);
- testcase.addSchemaMapping("http://www.w3.org/XQueryTestOrderBy", "tests/TestSources/orderData.xsd");
+ testcase.addSchemaMapping("http://www.w3.org/XQueryTestOrderBy", "http://127.0.0.1:8090/test/tests/TestSources/orderData.xsd");
testcase.addVariable("input-context1",
"http://127.0.0.1:8090/test/tests/TestSources/orderData.xml", true);
testcase.execute();
@@ -26,7 +26,7 @@
public void test_orderBy2() throws Exception{
String query = "declare default element namespace \"http://www.w3.org/XQueryTestOrderBy\";\n(: name : orderBy2 :)\n(: description : Evaluation of \"order by\" clause with the \"order by\" clause of a FLWR expression set to \"$x \", where $x is a set of Strings and the ordering mode set to descending :)\n\n(: insert-start :)\ndeclare variable $input-context1 external;\n(: insert-end :)\n\n<results> {\nfor $x in $input-context1/DataValues/Strings/orderData\n order by $x descending return $x\n}\n</results>\n";
XQueryTestCase testcase = new XQueryTestCase(driver,query);
- testcase.addSchemaMapping("http://www.w3.org/XQueryTestOrderBy", "tests/TestSources/orderData.xsd");
+ testcase.addSchemaMapping("http://www.w3.org/XQueryTestOrderBy", "http://127.0.0.1:8090/test/tests/TestSources/orderData.xsd");
testcase.addVariable("input-context1",
"http://127.0.0.1:8090/test/tests/TestSources/orderData.xml", true);
testcase.execute();
@@ -44,7 +44,7 @@
public void test_orderBy3() throws Exception{
String query = "declare default element namespace \"http://www.w3.org/XQueryTestOrderBy\";\n(: name : orderBy3 :)\n(: description : Evaluation of \"order by\" clause with the \"order by\" clause of a FLWR expression set to \"concat($x,\"()\") \", where $x is a set of Strings and the ordering mode set to ascending :)\n\n(: insert-start :)\ndeclare variable $input-context1 external;\n(: insert-end :)\n\n<results> {\nfor $x in $input-context1/DataValues/Strings/orderData\n order by concat($x,\"()\") ascending return concat($x,\"()\")\n}\n</results>\n";
XQueryTestCase testcase = new XQueryTestCase(driver,query);
- testcase.addSchemaMapping("http://www.w3.org/XQueryTestOrderBy", "tests/TestSources/orderData.xsd");
+ testcase.addSchemaMapping("http://www.w3.org/XQueryTestOrderBy", "http://127.0.0.1:8090/test/tests/TestSources/orderData.xsd");
testcase.addVariable("input-context1",
"http://127.0.0.1:8090/test/tests/TestSources/orderData.xml", true);
testcase.execute();
@@ -62,7 +62,7 @@
public void test_orderBy4() throws Exception{
String query = "declare default element namespace \"http://www.w3.org/XQueryTestOrderBy\";\n(: name : orderBy4 :)\n(: description : Evaluation of \"order by\" clause with the \"order by\" clause of a FLWR expression set to \"concat($x,\"()\") \", where $x is a set of Strings and the ordering mode set to descending :)\n\n(: insert-start :)\ndeclare variable $input-context1 external;\n(: insert-end :)\n\n<results> {\nfor $x in $input-context1/DataValues/Strings/orderData\n order by concat($x,\"()\") descending return concat($x,\"()\")\n}\n</results>\n";
XQueryTestCase testcase = new XQueryTestCase(driver,query);
- testcase.addSchemaMapping("http://www.w3.org/XQueryTestOrderBy", "tests/TestSources/orderData.xsd");
+ testcase.addSchemaMapping("http://www.w3.org/XQueryTestOrderBy", "http://127.0.0.1:8090/test/tests/TestSources/orderData.xsd");
testcase.addVariable("input-context1",
"http://127.0.0.1:8090/test/tests/TestSources/orderData.xml", true);
testcase.execute();
@@ -80,7 +80,7 @@
public void test_orderBy5() throws Exception{
String query = "declare default element namespace \"http://www.w3.org/XQueryTestOrderBy\";\n(: name : orderBy5 :)\n(: description : Evaluation of \"order by\" clause with the \"order by\" clause of a FLWR expression set to \"concat($x,\"another String After\") \", where $x is a set of Strings and the ordering mode set to ascending :)\n\n(: insert-start :)\ndeclare variable $input-context1 external;\n(: insert-end :)\n\n<results> {\nfor $x in $input-context1/DataValues/Strings/orderData\n order by concat($x,\"another String After\") ascending return concat($x,\"another String After\")\n}\n</results>\n";
XQueryTestCase testcase = new XQueryTestCase(driver,query);
- testcase.addSchemaMapping("http://www.w3.org/XQueryTestOrderBy", "tests/TestSources/orderData.xsd");
+ testcase.addSchemaMapping("http://www.w3.org/XQueryTestOrderBy", "http://127.0.0.1:8090/test/tests/TestSources/orderData.xsd");
testcase.addVariable("input-context1",
"http://127.0.0.1:8090/test/tests/TestSources/orderData.xml", true);
testcase.execute();
@@ -98,7 +98,7 @@
public void test_orderBy6() throws Exception{
String query = "declare default element namespace \"http://www.w3.org/XQueryTestOrderBy\";\n(: name : orderBy6 :)\n(: description : Evaluation of \"order by\" clause with the \"order by\" clause of a FLWR expression set to \"concat($x,\"another String After\") \", where $x is a set of Strings and the ordering mode set to descending :)\n\n(: insert-start :)\ndeclare variable $input-context1 external;\n(: insert-end :)\n\n<results> {\nfor $x in $input-context1/DataValues/Strings/orderData\n order by concat($x,\"another String After\") descending return concat($x,\"another String After\")\n}\n</results>\n";
XQueryTestCase testcase = new XQueryTestCase(driver,query);
- testcase.addSchemaMapping("http://www.w3.org/XQueryTestOrderBy", "tests/TestSources/orderData.xsd");
+ testcase.addSchemaMapping("http://www.w3.org/XQueryTestOrderBy", "http://127.0.0.1:8090/test/tests/TestSources/orderData.xsd");
testcase.addVariable("input-context1",
"http://127.0.0.1:8090/test/tests/TestSources/orderData.xml", true);
testcase.execute();
@@ -116,7 +116,7 @@
public void test_orderBy7() throws Exception{
String query = "declare default element namespace \"http://www.w3.org/XQueryTestOrderBy\";\n(: name : orderBy7 :)\n(: description : Evaluation of \"order by\" clause with the \"order by\" clause of a FLWR expression set to \"concat($x,\"another String Before\") \", where $x is a set of Strings and the ordering mode set to ascending :)\n\n(: insert-start :)\ndeclare variable $input-context1 external;\n(: insert-end :)\n\n<results> {\nfor $x in $input-context1/DataValues/Strings/orderData\n order by concat($x,\"another String Before\") ascending return concat($x,\"another String Before\")\n}\n</results>\n";
XQueryTestCase testcase = new XQueryTestCase(driver,query);
- testcase.addSchemaMapping("http://www.w3.org/XQueryTestOrderBy", "tests/TestSources/orderData.xsd");
+ testcase.addSchemaMapping("http://www.w3.org/XQueryTestOrderBy", "http://127.0.0.1:8090/test/tests/TestSources/orderData.xsd");
testcase.addVariable("input-context1",
"http://127.0.0.1:8090/test/tests/TestSources/orderData.xml", true);
testcase.execute();
@@ -134,7 +134,7 @@
public void test_orderBy8() throws Exception{
String query = "declare default element namespace \"http://www.w3.org/XQueryTestOrderBy\";\n(: name : orderBy8 :)\n(: description : Evaluation of \"order by\" clause with the \"order by\" clause of a FLWR expression set to \"concat($x,\"another String Before\") \", where $x is a set of Strings and the ordering mode set to descending :)\n\n(: insert-start :)\ndeclare variable $input-context1 external;\n(: insert-end :)\n\n<results> {\nfor $x in $input-context1/DataValues/Strings/orderData\n order by concat($x,\"another String Before\") descending return concat($x,\"another String Before\")\n}\n</results>\n";
XQueryTestCase testcase = new XQueryTestCase(driver,query);
- testcase.addSchemaMapping("http://www.w3.org/XQueryTestOrderBy", "tests/TestSources/orderData.xsd");
+ testcase.addSchemaMapping("http://www.w3.org/XQueryTestOrderBy", "http://127.0.0.1:8090/test/tests/TestSources/orderData.xsd");
testcase.addVariable("input-context1",
"http://127.0.0.1:8090/test/tests/TestSources/orderData.xml", true);
testcase.execute();
@@ -152,7 +152,7 @@
public void test_orderBy9() throws Exception{
String query = "declare default element namespace \"http://www.w3.org/XQueryTestOrderBy\";\n(: name : orderBy9 :)\n(: description : Evaluation of \"order by\" clause with the \"order by\" clause of a FLWR expression set to \"concat($x,\"\") \", where $x is a set of Strings and the ordering mode set to descending :)\n\n(: insert-start :)\ndeclare variable $input-context1 external;\n(: insert-end :)\n\n<results> {\nfor $x in $input-context1/DataValues/Strings/orderData\n order by concat($x,\"\") descending return concat($x,\"\")\n}\n</results>\n";
XQueryTestCase testcase = new XQueryTestCase(driver,query);
- testcase.addSchemaMapping("http://www.w3.org/XQueryTestOrderBy", "tests/TestSources/orderData.xsd");
+ testcase.addSchemaMapping("http://www.w3.org/XQueryTestOrderBy", "http://127.0.0.1:8090/test/tests/TestSources/orderData.xsd");
testcase.addVariable("input-context1",
"http://127.0.0.1:8090/test/tests/TestSources/orderData.xml", true);
testcase.execute();
@@ -170,7 +170,7 @@
public void test_orderBy10() throws Exception{
String query = "declare default element namespace \"http://www.w3.org/XQueryTestOrderBy\";\n(: name : orderBy10 :)\n(: description : Evaluation of \"order by\" clause with the \"order by\" clause of a FLWR expression set to \"concat($x,\"\") \", where $x is a set of Strings and the ordering mode set to ascending :)\n\n(: insert-start :)\ndeclare variable $input-context1 external;\n(: insert-end :)\n\n<results> {\nfor $x in $input-context1/DataValues/Strings/orderData\n order by concat($x,\"\") ascending return concat($x,\"\")\n}\n</results>\n";
XQueryTestCase testcase = new XQueryTestCase(driver,query);
- testcase.addSchemaMapping("http://www.w3.org/XQueryTestOrderBy", "tests/TestSources/orderData.xsd");
+ testcase.addSchemaMapping("http://www.w3.org/XQueryTestOrderBy", "http://127.0.0.1:8090/test/tests/TestSources/orderData.xsd");
testcase.addVariable("input-context1",
"http://127.0.0.1:8090/test/tests/TestSources/orderData.xml", true);
testcase.execute();
@@ -188,7 +188,7 @@
public void test_orderBy11() throws Exception{
String query = "declare default element namespace \"http://www.w3.org/XQueryTestOrderBy\";\n(: name : orderBy11 :)\n(: description : Evaluation of \"order by\" clause with the \"order by\" clause of a FLWR expression set to \"concat(\"\",$x) \", where $x is a set of Strings and the ordering mode set to descending :)\n\n(: insert-start :)\ndeclare variable $input-context1 external;\n(: insert-end :)\n\n<results> {\nfor $x in $input-context1/DataValues/Strings/orderData\n order by concat(\"\",$x) descending return concat(\"\",$x)\n}\n</results>\n";
XQueryTestCase testcase = new XQueryTestCase(driver,query);
- testcase.addSchemaMapping("http://www.w3.org/XQueryTestOrderBy", "tests/TestSources/orderData.xsd");
+ testcase.addSchemaMapping("http://www.w3.org/XQueryTestOrderBy", "http://127.0.0.1:8090/test/tests/TestSources/orderData.xsd");
testcase.addVariabl...
[truncated message content] |