jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mreut...@apache.org
Subject svn commit: r433644 - /jackrabbit/trunk/jackrabbit/src/test/java/org/apache/jackrabbit/test/api/query/SimpleSelectionTest.java
Date Tue, 22 Aug 2006 14:38:50 GMT
Author: mreutegg
Date: Tue Aug 22 07:38:47 2006
New Revision: 433644

URL: http://svn.apache.org/viewvc?rev=433644&view=rev
Log:
JCR-547: SimpleSelectionTest assumes RowIterator.getSize() not to return -1

Modified:
    jackrabbit/trunk/jackrabbit/src/test/java/org/apache/jackrabbit/test/api/query/SimpleSelectionTest.java

Modified: jackrabbit/trunk/jackrabbit/src/test/java/org/apache/jackrabbit/test/api/query/SimpleSelectionTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit/src/test/java/org/apache/jackrabbit/test/api/query/SimpleSelectionTest.java?rev=433644&r1=433643&r2=433644&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit/src/test/java/org/apache/jackrabbit/test/api/query/SimpleSelectionTest.java
(original)
+++ jackrabbit/trunk/jackrabbit/src/test/java/org/apache/jackrabbit/test/api/query/SimpleSelectionTest.java
Tue Aug 22 07:38:47 2006
@@ -80,7 +80,7 @@
         Query query = session.getWorkspace().getQueryManager().createQuery(propQuery, Query.XPATH);
         QueryResult result = query.execute();
 
-        assertEquals("Should have only 1 result", 1, result.getRows().getSize());
+        assertEquals("Should have only 1 result", 1, getSize(result.getRows()));
         assertTrue("Should contain the searched property",
                 Arrays.asList(result.getColumnNames()).contains(jcrPrimaryType));
     }



Mime
View raw message