You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@vxquery.apache.org by pr...@apache.org on 2013/09/11 02:14:26 UTC

svn commit: r1521689 - /incubator/vxquery/trunk/vxquery/vxquery-core/src/test/java/org/apache/vxquery/xmlquery/query/SimpleXQueryTest.java

Author: prestonc
Date: Wed Sep 11 00:14:25 2013
New Revision: 1521689

URL: http://svn.apache.org/r1521689
Log:
Formating update and changed the ResultSetId to be dynamic.

Modified:
    incubator/vxquery/trunk/vxquery/vxquery-core/src/test/java/org/apache/vxquery/xmlquery/query/SimpleXQueryTest.java

Modified: incubator/vxquery/trunk/vxquery/vxquery-core/src/test/java/org/apache/vxquery/xmlquery/query/SimpleXQueryTest.java
URL: http://svn.apache.org/viewvc/incubator/vxquery/trunk/vxquery/vxquery-core/src/test/java/org/apache/vxquery/xmlquery/query/SimpleXQueryTest.java?rev=1521689&r1=1521688&r2=1521689&view=diff
==============================================================================
--- incubator/vxquery/trunk/vxquery/vxquery-core/src/test/java/org/apache/vxquery/xmlquery/query/SimpleXQueryTest.java (original)
+++ incubator/vxquery/trunk/vxquery/vxquery-core/src/test/java/org/apache/vxquery/xmlquery/query/SimpleXQueryTest.java Wed Sep 11 00:14:25 2013
@@ -134,9 +134,9 @@ public class SimpleXQueryTest {
     }
 
     private static void runTestInternal(String testName, String query) throws Exception {
-        XMLQueryCompiler compiler = new XMLQueryCompiler(null, new String[]{"nc1"});
+        XMLQueryCompiler compiler = new XMLQueryCompiler(null, new String[] { "nc1" });
         CompilerControlBlock ccb = new CompilerControlBlock(new StaticContextImpl(RootStaticContextImpl.INSTANCE),
-                new ResultSetId(0));
+                new ResultSetId(System.nanoTime()));
         compiler.compile(testName, new StringReader(query), ccb, Integer.MAX_VALUE);
     }
 }