jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From resc...@apache.org
Subject svn commit: r1337168 - /jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/SessionRemoveItemTest.java
Date Fri, 11 May 2012 14:05:13 GMT
Author: reschke
Date: Fri May 11 14:05:13 2012
New Revision: 1337168

URL: http://svn.apache.org/viewvc?rev=1337168&view=rev
Log:
JCR-3302: add missing refresh() call on test session 

Modified:
    jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/SessionRemoveItemTest.java

Modified: jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/SessionRemoveItemTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/SessionRemoveItemTest.java?rev=1337168&r1=1337167&r2=1337168&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/SessionRemoveItemTest.java
(original)
+++ jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/SessionRemoveItemTest.java
Fri May 11 14:05:13 2012
@@ -83,6 +83,8 @@ public class SessionRemoveItemTest exten
 
     public void testRemoveItem4() throws RepositoryException {
         try {
+            readOnlySession.refresh(false); // see JCR-3302
+
             readOnlySession.removeItem(nPath);
             readOnlySession.save();
             fail("A read-only session must not be allowed to remove an item");



Mime
View raw message