jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From thom...@apache.org
Subject svn commit: r1164538 - /jackrabbit/sandbox/microkernel/src/test/java/org/apache/jackrabbit/mk/index/PropertyIndexTest.java
Date Fri, 02 Sep 2011 14:07:39 GMT
Author: thomasm
Date: Fri Sep  2 14:07:27 2011
New Revision: 1164538

URL: http://svn.apache.org/viewvc?rev=1164538&view=rev
Log:
Index mechanism (WIP)

Modified:
    jackrabbit/sandbox/microkernel/src/test/java/org/apache/jackrabbit/mk/index/PropertyIndexTest.java

Modified: jackrabbit/sandbox/microkernel/src/test/java/org/apache/jackrabbit/mk/index/PropertyIndexTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/microkernel/src/test/java/org/apache/jackrabbit/mk/index/PropertyIndexTest.java?rev=1164538&r1=1164537&r2=1164538&view=diff
==============================================================================
--- jackrabbit/sandbox/microkernel/src/test/java/org/apache/jackrabbit/mk/index/PropertyIndexTest.java
(original)
+++ jackrabbit/sandbox/microkernel/src/test/java/org/apache/jackrabbit/mk/index/PropertyIndexTest.java
Fri Sep  2 14:07:27 2011
@@ -39,6 +39,7 @@ public class PropertyIndexTest extends T
         PropertyIndex index = indexer.createPropertyIndex("id", true);
 
         String head = mk.getHeadRevision();
+        String oldHead = head;
 
         assertEquals(null, index.getPath("1", head));
 
@@ -48,6 +49,12 @@ public class PropertyIndexTest extends T
         assertEquals("/test", index.getPath("1", head));
         assertEquals("/test2", index.getPath("2", head));
 
+        assertEquals("/test", index.getPath("1", oldHead));
+        assertEquals("/test2", index.getPath("2", oldHead));
+
+        assertEquals("/test", index.getPath("1", head));
+        assertEquals("/test2", index.getPath("2", head));
+
         head = mk.commit("/", "-\"test2\"", head, null);
         head = mk.commit("/test", "+\"test\" : {\"id\":\"3\"}", head, null);
 



Mime
View raw message