db-jdo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From c..@apache.org
Subject svn commit: r360562 - /db/jdo/trunk/tck20/test/java/org/apache/jdo/tck/query/result/ResultClassRequirements.java
Date Sun, 01 Jan 2006 21:54:58 GMT
Author: clr
Date: Sun Jan  1 13:54:56 2006
New Revision: 360562

URL: http://svn.apache.org/viewcvs?rev=360562&view=rev
Log:
JDO-248 changed Map query to use id and last name instead of phoneNumbers

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

Modified: db/jdo/trunk/tck20/test/java/org/apache/jdo/tck/query/result/ResultClassRequirements.java
URL: http://svn.apache.org/viewcvs/db/jdo/trunk/tck20/test/java/org/apache/jdo/tck/query/result/ResultClassRequirements.java?rev=360562&r1=360561&r2=360562&view=diff
==============================================================================
--- db/jdo/trunk/tck20/test/java/org/apache/jdo/tck/query/result/ResultClassRequirements.java
(original)
+++ db/jdo/trunk/tck20/test/java/org/apache/jdo/tck/query/result/ResultClassRequirements.java
Sun Jan  1 13:54:56 2006
@@ -122,7 +122,7 @@
         // Map
         new QueryElementHolder(
         /*UNIQUE*/      null,
-        /*RESULT*/      "phoneNumbers",
+        /*RESULT*/      "personid AS id, lastname AS name",
         /*INTO*/        Map.class, 
         /*FROM*/        FullTimeEmployee.class,
         /*EXCLUDE*/     null,
@@ -320,15 +320,15 @@
         
     // Two dimensional arrays to be converted to maps 
     // in the expected result.
-    private static Object[][] phoneNumbers1 = 
-        {{"home", "1111"}, 
-         {"work", "123456-1"}};
-    private static Object[][] phoneNumbers2 = 
-        {{"home", "2222"}, 
-         {"work", "123456-2"}};
-    private static Object[][] phoneNumbers5 = 
-        {{"home", "3363"}, 
-         {"work", "126456-3"}};
+    private static Object[][] emp1Map = 
+        {{"id", new Long(1)}, 
+         {"name", "emp1Last"}};
+    private static Object[][] emp2Map = 
+        {{"id", new Long(2)}, 
+         {"name", "emp2Last"}};
+    private static Object[][] emp5Map = 
+        {{"id", new Long(5)}, 
+         {"name", "emp5Last"}};
     private static Object[][] publicPutMethod1 =
         {{"personid", new Long(1)}, {"lastname", "emp1Last"}};
     private static Object[][] publicPutMethod2 =
@@ -355,9 +355,9 @@
                 CompanyModelReader.stringToUtilDate("15/Aug/1998")}),
         // Map
         Arrays.asList(new Object[]{
-                ConversionHelper.arrayToMap(phoneNumbers1),
-                ConversionHelper.arrayToMap(phoneNumbers2),
-                ConversionHelper.arrayToMap(phoneNumbers5)}),
+                ConversionHelper.arrayToMap(emp1Map),
+                ConversionHelper.arrayToMap(emp2Map),
+                ConversionHelper.arrayToMap(emp5Map)}),
         // user defined result class
         Arrays.asList(new Object[]{
                 new LongString(1, "emp1Last"), 



Mime
View raw message