jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mreut...@apache.org
Subject svn commit: r786409 - /jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/query/qom/OrderingTest.java
Date Fri, 19 Jun 2009 08:27:10 GMT
Author: mreutegg
Date: Fri Jun 19 08:27:10 2009
New Revision: 786409

URL: http://svn.apache.org/viewvc?rev=786409&view=rev
Log:
JCR-2085: test case (TCK) maintenance for JCR 2.0
- fix wrong selector names in test

Modified:
    jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/query/qom/OrderingTest.java

Modified: jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/query/qom/OrderingTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/query/qom/OrderingTest.java?rev=786409&r1=786408&r2=786409&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/query/qom/OrderingTest.java
(original)
+++ jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/query/qom/OrderingTest.java
Fri Jun 19 08:27:10 2009
@@ -48,13 +48,13 @@
     public void testMultipleSelectors() throws RepositoryException {
         // ascending
         Ordering[] orderings = new Ordering[]{
-                qf.ascending(qf.propertyValue(RIGHT, propertyName2))
+                qf.ascending(qf.propertyValue(LEFT, propertyName2))
         };
         QueryObjectModel qom = createQuery(orderings);
         checkResultOrder(qom, SELECTOR_NAMES, new Node[][]{{n2, n2}, {n1, n2}});
 
         // descending
-        orderings[0] = qf.descending(qf.propertyValue(RIGHT, propertyName2));
+        orderings[0] = qf.descending(qf.propertyValue(LEFT, propertyName2));
         qom = createQuery(orderings);
         checkResultOrder(qom, SELECTOR_NAMES, new Node[][]{{n1, n2}, {n2, n2}});
     }



Mime
View raw message