cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aadamc...@apache.org
Subject svn commit: r1576289 - /cayenne/main/trunk/cayenne-server/src/test/java/org/apache/cayenne/access/DataContextPrefetchMultistepTest.java
Date Tue, 11 Mar 2014 11:53:27 GMT
Author: aadamchik
Date: Tue Mar 11 11:53:27 2014
New Revision: 1576289

URL: http://svn.apache.org/r1576289
Log:
clear warnings

Modified:
    cayenne/main/trunk/cayenne-server/src/test/java/org/apache/cayenne/access/DataContextPrefetchMultistepTest.java

Modified: cayenne/main/trunk/cayenne-server/src/test/java/org/apache/cayenne/access/DataContextPrefetchMultistepTest.java
URL: http://svn.apache.org/viewvc/cayenne/main/trunk/cayenne-server/src/test/java/org/apache/cayenne/access/DataContextPrefetchMultistepTest.java?rev=1576289&r1=1576288&r2=1576289&view=diff
==============================================================================
--- cayenne/main/trunk/cayenne-server/src/test/java/org/apache/cayenne/access/DataContextPrefetchMultistepTest.java
(original)
+++ cayenne/main/trunk/cayenne-server/src/test/java/org/apache/cayenne/access/DataContextPrefetchMultistepTest.java
Tue Mar 11 11:53:27 2014
@@ -127,11 +127,11 @@ public class DataContextPrefetchMultiste
         assertNull(context.getGraphManager().getNode(oid2));
 
         Expression e = Expression.fromString("galleryName = $name");
-        SelectQuery q = new SelectQuery(Gallery.class, e.expWithParameters(Collections
+        SelectQuery<Gallery> q = SelectQuery.query(Gallery.class, e.expWithParameters(Collections
                 .singletonMap("name", "gallery2")));
         q.addPrefetch("exhibitArray.artistExhibitArray");
 
-        List<Gallery> galleries = context.performQuery(q);
+        List<Gallery> galleries = context.select(q);
         assertEquals(1, galleries.size());
 
         Gallery g2 = galleries.get(0);
@@ -155,12 +155,12 @@ public class DataContextPrefetchMultiste
         createTwoArtistsWithExhibitsDataSet();
 
         Expression e = Expression.fromString("galleryName = $name");
-        SelectQuery q = new SelectQuery(Gallery.class, e.expWithParameters(Collections
+        SelectQuery<Gallery> q = SelectQuery.query(Gallery.class, e.expWithParameters(Collections
                 .singletonMap("name", "gallery2")));
         q.addPrefetch("exhibitArray");
         q.addPrefetch("exhibitArray.artistExhibitArray");
 
-        List<Gallery> galleries = context.performQuery(q);
+        List<Gallery> galleries = context.select(q);
         assertEquals(1, galleries.size());
 
         Gallery g2 = galleries.get(0);
@@ -190,13 +190,13 @@ public class DataContextPrefetchMultiste
         createTwoArtistsWithExhibitsDataSet();
 
         Expression e = Expression.fromString("galleryName = $name");
-        SelectQuery q = new SelectQuery(Gallery.class, e.expWithParameters(Collections
+        SelectQuery<Gallery> q = SelectQuery.query(Gallery.class, e.expWithParameters(Collections
                 .singletonMap("name", "gallery2")));
         q.addPrefetch("exhibitArray").setSemantics(
                 PrefetchTreeNode.JOINT_PREFETCH_SEMANTICS);
         q.addPrefetch("exhibitArray.artistExhibitArray");
 
-        List<Gallery> galleries = context.performQuery(q);
+        List<Gallery> galleries = context.select(q);
         assertEquals(1, galleries.size());
 
         Gallery g2 = galleries.get(0);
@@ -226,7 +226,7 @@ public class DataContextPrefetchMultiste
         createTwoArtistsWithExhibitsDataSet();
 
         Expression e = Expression.fromString("galleryName = $name");
-        SelectQuery q = new SelectQuery(Gallery.class, e.expWithParameters(Collections
+        SelectQuery<Gallery> q = SelectQuery.query(Gallery.class, e.expWithParameters(Collections
                 .singletonMap("name", "gallery2")));
 
         // reverse the order of prefetches compared to the previous test
@@ -234,7 +234,7 @@ public class DataContextPrefetchMultiste
         q.addPrefetch("exhibitArray.artistExhibitArray").setSemantics(
                 PrefetchTreeNode.JOINT_PREFETCH_SEMANTICS);
 
-        List<Gallery> galleries = context.performQuery(q);
+        List<Gallery> galleries = context.select(q);
         assertEquals(1, galleries.size());
 
         Gallery g2 = galleries.get(0);



Mime
View raw message