cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r1355374 - in /cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne: CayenneContextNamedQueryCachingTest.java access/ClientServerChannelQueryTest.java
Date Fri, 29 Jun 2012 13:29:56 GMT
Author: oltka
Date: Fri Jun 29 13:29:55 2012
New Revision: 1355374

URL: http://svn.apache.org/viewvc?rev=1355374&view=rev
Log:
CAY-1715 changed the test name

Modified:
    cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/CayenneContextNamedQueryCachingTest.java
    cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/access/ClientServerChannelQueryTest.java

Modified: cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/CayenneContextNamedQueryCachingTest.java
URL: http://svn.apache.org/viewvc/cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/CayenneContextNamedQueryCachingTest.java?rev=1355374&r1=1355373&r2=1355374&view=diff
==============================================================================
--- cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/CayenneContextNamedQueryCachingTest.java
(original)
+++ cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/CayenneContextNamedQueryCachingTest.java
Fri Jun 29 13:29:55 2012
@@ -122,7 +122,7 @@ public class CayenneContextNamedQueryCac
     
     }
     
-    public void testLocalCacheEJBQLQueryParameterized() throws Exception {
+    public void testParameterizedMappedToEJBQLQueries() throws Exception {
         
         createThreeMtTable1sDataSet();
         NamedQuery query = new NamedQuery("ParameterizedEJBQLMtQuery", Collections.singletonMap("g",
"g1"));

Modified: cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/access/ClientServerChannelQueryTest.java
URL: http://svn.apache.org/viewvc/cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/access/ClientServerChannelQueryTest.java?rev=1355374&r1=1355373&r2=1355374&view=diff
==============================================================================
--- cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/access/ClientServerChannelQueryTest.java
(original)
+++ cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/access/ClientServerChannelQueryTest.java
Fri Jun 29 13:29:55 2012
@@ -19,6 +19,7 @@
 
 package org.apache.cayenne.access;
 
+import java.util.Collections;
 import java.util.List;
 
 import org.apache.cayenne.ObjectContext;
@@ -103,6 +104,16 @@ public class ClientServerChannelQueryTes
         assertTrue(results.get(3) instanceof ClientMtTable1);
     }
 
+    public void testParameterizedMappedToEJBQLQueries() throws Exception {
+        createTwoMtTable1sAnd2sDataSet();
+
+        NamedQuery query = new NamedQuery("ParameterizedEJBQLMtQuery", Collections.singletonMap("g",
"g1"));
+        
+        List<?> r1 = context.performQuery(query);
+        assertEquals(1, r1.size());
+        assertTrue(r1.get(0) instanceof ClientMtTable1);
+    }
+    
     public void testNamedQuery() throws Exception {
         createTwoMtTable1sAnd2sDataSet();
 



Mime
View raw message