jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From alexparvule...@apache.org
Subject svn commit: r1441532 - /jackrabbit/oak/trunk/oak-core/src/test/java/org/apache/jackrabbit/oak/query/index/FilterTest.java
Date Fri, 01 Feb 2013 17:06:57 GMT
Author: alexparvulescu
Date: Fri Feb  1 17:06:56 2013
New Revision: 1441532

URL: http://svn.apache.org/viewvc?rev=1441532&view=rev
Log:
OAK-600 Query log tweaks
 - fixed the test

Modified:
    jackrabbit/oak/trunk/oak-core/src/test/java/org/apache/jackrabbit/oak/query/index/FilterTest.java

Modified: jackrabbit/oak/trunk/oak-core/src/test/java/org/apache/jackrabbit/oak/query/index/FilterTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-core/src/test/java/org/apache/jackrabbit/oak/query/index/FilterTest.java?rev=1441532&r1=1441531&r2=1441532&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-core/src/test/java/org/apache/jackrabbit/oak/query/index/FilterTest.java
(original)
+++ jackrabbit/oak/trunk/oak-core/src/test/java/org/apache/jackrabbit/oak/query/index/FilterTest.java
Fri Feb  1 17:06:56 2013
@@ -57,25 +57,25 @@ public class FilterTest {
 
         f = new FilterImpl(null, null);
         f.restrictProperty("x", Operator.EQUAL, one);
-        assertEquals("[1..1]", f.getPropertyRestriction("x").toString());
+        assertEquals("1", f.getPropertyRestriction("x").toString());
         f.restrictProperty("x", Operator.EQUAL, one);
-        assertEquals("[1..1]", f.getPropertyRestriction("x").toString());
+        assertEquals("1", f.getPropertyRestriction("x").toString());
         f.restrictProperty("x", Operator.GREATER_OR_EQUAL, one);
-        assertEquals("[1..1]", f.getPropertyRestriction("x").toString());
+        assertEquals("1", f.getPropertyRestriction("x").toString());
         f.restrictProperty("x", Operator.LESS_OR_EQUAL, one);
-        assertEquals("[1..1]", f.getPropertyRestriction("x").toString());
+        assertEquals("1", f.getPropertyRestriction("x").toString());
         f.restrictProperty("x", Operator.GREATER_THAN, one);
         assertTrue(f.isAlwaysFalse());
 
         f = new FilterImpl(null, null);
         f.restrictProperty("x", Operator.EQUAL, one);
-        assertEquals("[1..1]", f.getPropertyRestriction("x").toString());
+        assertEquals("1", f.getPropertyRestriction("x").toString());
         f.restrictProperty("x", Operator.LESS_THAN, one);
         assertTrue(f.isAlwaysFalse());
 
         f = new FilterImpl(null, null);
         f.restrictProperty("x", Operator.NOT_EQUAL, null);
-        assertEquals("..", f.getPropertyRestriction("x").toString());
+        assertEquals("", f.getPropertyRestriction("x").toString());
         f.restrictProperty("x", Operator.LESS_THAN, one);
         assertEquals("..1)", f.getPropertyRestriction("x").toString());
         f.restrictProperty("x", Operator.EQUAL, two);



Mime
View raw message