You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-commits@jackrabbit.apache.org by md...@apache.org on 2013/02/13 17:21:49 UTC

svn commit: r1445706 - /jackrabbit/oak/trunk/oak-core/src/test/java/org/apache/jackrabbit/oak/core/RootImplTest.java

Author: mduerig
Date: Wed Feb 13 16:21:49 2013
New Revision: 1445706

URL: http://svn.apache.org/r1445706
Log:
OAK-621: Moving tree instance with status NEW changes its status to EXISTING instead of DISCONNECTED
Fix test expectation

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

Modified: jackrabbit/oak/trunk/oak-core/src/test/java/org/apache/jackrabbit/oak/core/RootImplTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-core/src/test/java/org/apache/jackrabbit/oak/core/RootImplTest.java?rev=1445706&r1=1445705&r2=1445706&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-core/src/test/java/org/apache/jackrabbit/oak/core/RootImplTest.java (original)
+++ jackrabbit/oak/trunk/oak-core/src/test/java/org/apache/jackrabbit/oak/core/RootImplTest.java Wed Feb 13 16:21:49 2013
@@ -30,7 +30,6 @@ import org.apache.jackrabbit.oak.api.Tre
 import org.apache.jackrabbit.oak.api.Tree.Status;
 import org.junit.After;
 import org.junit.Before;
-import org.junit.Ignore;
 import org.junit.Test;
 
 import static org.junit.Assert.assertEquals;
@@ -115,7 +114,6 @@ public class RootImplTest {
     }
 
     @Test
-    @Ignore("OAK-621")
     public void moveNew() throws CommitFailedException {
         Root root = session.getLatestRoot();
         Tree tree = root.getTree("/");
@@ -123,7 +121,7 @@ public class RootImplTest {
         Tree t = tree.addChild("new");
         assertEquals(Status.NEW, t.getStatus());
 
-        root.move("/x", "/y/x");
+        root.move("/new", "/y/new");
         assertEquals(Status.DISCONNECTED, t.getStatus());
 
         assertNull(tree.getChild("new"));