incubator-graffito-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From clomb...@apache.org
Subject svn commit: r413756 - /incubator/graffito/trunk/jcr/jcr-mapping/src/test/org/apache/portals/graffito/jcr/persistence/query/PersistenceManagerScopeQueryTest.java
Date Mon, 12 Jun 2006 22:16:24 GMT
Author: clombart
Date: Mon Jun 12 15:16:23 2006
New Revision: 413756

URL: http://svn.apache.org/viewvc?rev=413756&view=rev
Log:
Modify a unit test

Modified:
    incubator/graffito/trunk/jcr/jcr-mapping/src/test/org/apache/portals/graffito/jcr/persistence/query/PersistenceManagerScopeQueryTest.java

Modified: incubator/graffito/trunk/jcr/jcr-mapping/src/test/org/apache/portals/graffito/jcr/persistence/query/PersistenceManagerScopeQueryTest.java
URL: http://svn.apache.org/viewvc/incubator/graffito/trunk/jcr/jcr-mapping/src/test/org/apache/portals/graffito/jcr/persistence/query/PersistenceManagerScopeQueryTest.java?rev=413756&r1=413755&r2=413756&view=diff
==============================================================================
--- incubator/graffito/trunk/jcr/jcr-mapping/src/test/org/apache/portals/graffito/jcr/persistence/query/PersistenceManagerScopeQueryTest.java
(original)
+++ incubator/graffito/trunk/jcr/jcr-mapping/src/test/org/apache/portals/graffito/jcr/persistence/query/PersistenceManagerScopeQueryTest.java
Mon Jun 12 15:16:23 2006
@@ -144,6 +144,16 @@
     	      result = persistenceManager.getObjects(query);
     	      assertTrue("Invalid number of objects - should be = 4", result.size() == 4);
     	      
+    	      queryManager = this.getQueryManager();
+    	      filter = queryManager.createFilter(Page.class);    
+    	      filter.setScope("/test/node1/");    	      
+    	      query = queryManager.createQuery(filter);    	      
+    	      persistenceManager = this.getPersistenceManager();
+    	      result = persistenceManager.getObjects(query);
+    	      assertTrue("Invalid number of objects - should be = 2", result.size() == 2);
+    	      assertTrue ("Invalid object in the collection" , this.contains(result, "/test/node1/page1",
Page.class));
+    	      assertTrue ("Invalid object in the collection" , this.contains(result, "/test/node1/page2",
Page.class));
+    	      
         }
         catch (Exception e)
         {



Mime
View raw message