jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From thom...@apache.org
Subject svn commit: r1133803 - /jackrabbit/sandbox/spi2microkernel/src/test/java/org/apache/jackrabbit/spi2microkernel/MicrokernelTest.java
Date Thu, 09 Jun 2011 11:35:47 GMT
Author: thomasm
Date: Thu Jun  9 11:35:46 2011
New Revision: 1133803

URL: http://svn.apache.org/viewvc?rev=1133803&view=rev
Log:
Support removing properties.

Modified:
    jackrabbit/sandbox/spi2microkernel/src/test/java/org/apache/jackrabbit/spi2microkernel/MicrokernelTest.java

Modified: jackrabbit/sandbox/spi2microkernel/src/test/java/org/apache/jackrabbit/spi2microkernel/MicrokernelTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/spi2microkernel/src/test/java/org/apache/jackrabbit/spi2microkernel/MicrokernelTest.java?rev=1133803&r1=1133802&r2=1133803&view=diff
==============================================================================
--- jackrabbit/sandbox/spi2microkernel/src/test/java/org/apache/jackrabbit/spi2microkernel/MicrokernelTest.java
(original)
+++ jackrabbit/sandbox/spi2microkernel/src/test/java/org/apache/jackrabbit/spi2microkernel/MicrokernelTest.java
Thu Jun  9 11:35:46 2011
@@ -135,18 +135,18 @@ public class MicrokernelTest {
         assertEquals("{\":name\":\"" + node + "\",\":childNodeCount\":0}", json);
     }
 
-    @Ignore  // todo fix in microkernel
     @Test
     public void removeProperty() {
         MicroKernel mk = getMicroKernel();
         String head = mk.getHeadRevision();
-        String node = "removeProperty_" + System.currentTimeMillis();
+        long t = System.currentTimeMillis();
+        String node = "removeProperty_" + t;
 
         head = mk.commit("/", '+' + node + " : {\"prop\":\"value\"}", head);
 
         head = mk.commit("/", '^' + node + "/prop : null", head);
         String json = mk.getNodes('/' + node, 2, head);
-        assertEquals("{\":name\":\"removeProperty_1307540526522\",\":childNodeCount\":0}",
json);
+        assertEquals("{\":name\":\"removeProperty_" + t + "\",\":childNodeCount\":0}", json);
     }
 
     @Test



Mime
View raw message