db-jdo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bra...@apache.org
Subject svn commit: r348968 - /incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/query/jdoql/methods/SupportedJDOHelperMethods.java
Date Fri, 25 Nov 2005 15:41:45 GMT
Author: brazil
Date: Fri Nov 25 07:41:41 2005
New Revision: 348968

URL: http://svn.apache.org/viewcvs?rev=348968&view=rev
Log:
Bug fix related to JDO-177.

Modified:
    incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/query/jdoql/methods/SupportedJDOHelperMethods.java

Modified: incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/query/jdoql/methods/SupportedJDOHelperMethods.java
URL: http://svn.apache.org/viewcvs/incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/query/jdoql/methods/SupportedJDOHelperMethods.java?rev=348968&r1=348967&r2=348968&view=diff
==============================================================================
--- incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/query/jdoql/methods/SupportedJDOHelperMethods.java
(original)
+++ incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/query/jdoql/methods/SupportedJDOHelperMethods.java
Fri Nov 25 07:41:41 2005
@@ -107,10 +107,9 @@
         // query 2
         index = 1;
         expectedResult = getExpectedResult(false, Person.class, "personid == 1");
-        Object[] parameters = new Object[expectedResult.length];
-        for (int i = 0; i < parameters.length; i++) {
-            parameters[i] = JDOHelper.getObjectId(expectedResult);
-        }
+        // The query above returns a collection of size 1.
+        // The collection element is the parameter of the query below.
+        Object[] parameters = new Object[]{expectedResult[0]};
         executeAPIQuery(ASSERTION_FAILED, VALID_QUERIES[index], 
                 parameters, expectedResult);
         executeSingleStringQuery(ASSERTION_FAILED, VALID_QUERIES[index], 



Mime
View raw message