jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From alexparvule...@apache.org
Subject svn commit: r1502656 - /jackrabbit/oak/trunk/oak-jcr/src/test/java/org/apache/jackrabbit/oak/jcr/MoveTest.java
Date Fri, 12 Jul 2013 19:02:03 GMT
Author: alexparvulescu
Date: Fri Jul 12 19:02:02 2013
New Revision: 1502656

URL: http://svn.apache.org/r1502656
Log:
OAK-898 Session#move with a fresh session doesn't work properly
 - tweaked the test, added conditional save call

Modified:
    jackrabbit/oak/trunk/oak-jcr/src/test/java/org/apache/jackrabbit/oak/jcr/MoveTest.java

Modified: jackrabbit/oak/trunk/oak-jcr/src/test/java/org/apache/jackrabbit/oak/jcr/MoveTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-jcr/src/test/java/org/apache/jackrabbit/oak/jcr/MoveTest.java?rev=1502656&r1=1502655&r2=1502656&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-jcr/src/test/java/org/apache/jackrabbit/oak/jcr/MoveTest.java
(original)
+++ jackrabbit/oak/trunk/oak-jcr/src/test/java/org/apache/jackrabbit/oak/jcr/MoveTest.java
Fri Jul 12 19:02:02 2013
@@ -88,6 +88,10 @@ public class MoveTest extends AbstractJC
         Session ts = getHelper().getSuperuserSession();
         try {
             ts.move(node1.getPath(), destPath);
+            if (ts.hasPendingChanges()) {
+                ts.save();
+            }
+
         } finally {
             ts.logout();
         }



Mime
View raw message