db-jdo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bra...@apache.org
Subject svn commit: r349704 - /incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/query/result/ResultClassRequirements.java
Date Tue, 29 Nov 2005 10:53:46 GMT
Author: brazil
Date: Tue Nov 29 02:53:43 2005
New Revision: 349704

URL: http://svn.apache.org/viewcvs?rev=349704&view=rev
Log:
JDO-224: Adapt ResultClassRequirements to new wording in spec concerning assertion A14.6.12-1.

Modified:
    incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/query/result/ResultClassRequirements.java

Modified: incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/query/result/ResultClassRequirements.java
URL: http://svn.apache.org/viewcvs/incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/query/result/ResultClassRequirements.java?rev=349704&r1=349703&r2=349704&view=diff
==============================================================================
--- incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/query/result/ResultClassRequirements.java
(original)
+++ incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/query/result/ResultClassRequirements.java
Tue Nov 29 02:53:43 2005
@@ -161,6 +161,22 @@
         /*WHERE*/       null,
         /*VARIABLES*/   null,
         /*PARAMETERS*/  null,
+        /*IMPORTS*/     "import org.apache.jdo.tck.query.result.classes.LongString;",
+        /*GROUP BY*/    null,
+        /*ORDER BY*/    null,
+        /*FROM*/        null,
+        /*TO*/          null),
+        
+        // constructor without constructor call
+        new QueryElementHolder(
+        /*UNIQUE*/      null,
+        /*RESULT*/      "personid, lastname",
+        /*INTO*/        LongString.class, 
+        /*FROM*/        FullTimeEmployee.class,
+        /*EXCLUDE*/     null,
+        /*WHERE*/       null,
+        /*VARIABLES*/   null,
+        /*PARAMETERS*/  null,
         /*IMPORTS*/     null,
         /*GROUP BY*/    null,
         /*ORDER BY*/    null,
@@ -205,22 +221,6 @@
      * single string queries and as API queries.
      */
     private static final QueryElementHolder[] INVALID_QUERIES = {
-        // TCK class, invalid property
-        new QueryElementHolder(
-        /*UNIQUE*/      null,
-        /*RESULT*/      "personid, lastname",
-        /*INTO*/        LongString.class, 
-        /*FROM*/        FullTimeEmployee.class,
-        /*EXCLUDE*/     null,
-        /*WHERE*/       null,
-        /*VARIABLES*/   null,
-        /*PARAMETERS*/  null,
-        /*IMPORTS*/     null,
-        /*GROUP BY*/    null,
-        /*ORDER BY*/    null,
-        /*FROM*/        null,
-        /*TO*/          null),
-        
         // JDK class
         new QueryElementHolder(
         /*UNIQUE*/      null,
@@ -279,7 +279,7 @@
         /*WHERE*/       null,
         /*VARIABLES*/   null,
         /*PARAMETERS*/  null,
-        /*IMPORTS*/     null,
+        /*IMPORTS*/     "import org.apache.jdo.tck.query.result.classes.LongString;",
         /*GROUP BY*/    null,
         /*ORDER BY*/    null,
         /*FROM*/        null,
@@ -368,6 +368,11 @@
                 new LongString(1, "emp1Last"), 
                 new LongString(2, "emp2Last"), 
                 new LongString(5, "emp5Last")}),
+        // constructor without constructor call
+        Arrays.asList(new Object[]{
+                new LongString(1, "emp1Last"), 
+                new LongString(2, "emp2Last"), 
+                new LongString(5, "emp5Last")}),
         // public fields
         Arrays.asList(new Object[]{
                 new PublicLongField(1), 
@@ -429,17 +434,19 @@
     public void testConstructor() {
         int index = 6;
         executeQuery(index);
+        index++;
+        executeQuery(index);
     }
 
     /** */
     public void testFields() {
-        int index = 7;
+        int index = 8;
         executeQuery(index);
     }
 
     /** */
     public void testPut() {
-        int index = 8;
+        int index = 9;
         executeQuery(index);
     }
 



Mime
View raw message