jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mdue...@apache.org
Subject svn commit: r1445727 - /jackrabbit/oak/trunk/oak-core/src/test/java/org/apache/jackrabbit/oak/core/TreeImplTest.java
Date Wed, 13 Feb 2013 16:46:40 GMT
Author: mduerig
Date: Wed Feb 13 16:46:39 2013
New Revision: 1445727

URL: http://svn.apache.org/r1445727
Log:
OAK-621: Moving or deleting tree instances with status NEW doesn't change its status to DISCONNECTED
test case for the delete case

Modified:
    jackrabbit/oak/trunk/oak-core/src/test/java/org/apache/jackrabbit/oak/core/TreeImplTest.java

Modified: jackrabbit/oak/trunk/oak-core/src/test/java/org/apache/jackrabbit/oak/core/TreeImplTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-core/src/test/java/org/apache/jackrabbit/oak/core/TreeImplTest.java?rev=1445727&r1=1445726&r2=1445727&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-core/src/test/java/org/apache/jackrabbit/oak/core/TreeImplTest.java
(original)
+++ jackrabbit/oak/trunk/oak-core/src/test/java/org/apache/jackrabbit/oak/core/TreeImplTest.java
Wed Feb 13 16:46:39 2013
@@ -31,6 +31,7 @@ import org.apache.jackrabbit.oak.api.Tre
 import org.apache.jackrabbit.oak.plugins.memory.LongPropertyState;
 import org.junit.After;
 import org.junit.Before;
+import org.junit.Ignore;
 import org.junit.Test;
 
 import static org.apache.jackrabbit.oak.api.Type.LONG;
@@ -182,13 +183,13 @@ public class TreeImplTest {
     }
 
     @Test
+    @Ignore("OAK-621")
     public void removeNew() throws CommitFailedException {
         Tree tree = root.getTree("/");
 
         Tree t = tree.addChild("new");
-        assertEquals(Status.NEW, t.getStatus());
 
-        t.remove();
+        tree.getChild("new").remove();
         assertEquals(Status.DISCONNECTED, t.getStatus());
 
         assertNull(tree.getChild("new"));



Mime
View raw message