jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mreut...@apache.org
Subject svn commit: r427974 - /jackrabbit/trunk/jackrabbit/src/test/java/org/apache/jackrabbit/test/api/DocumentViewImportTest.java
Date Wed, 02 Aug 2006 13:22:59 GMT
Author: mreutegg
Date: Wed Aug  2 06:22:59 2006
New Revision: 427974

URL: http://svn.apache.org/viewvc?rev=427974&view=rev
Log:
JCR-504: TCK: DocumentViewImportTest does not call refresh after direct-to-workspace import

Modified:
    jackrabbit/trunk/jackrabbit/src/test/java/org/apache/jackrabbit/test/api/DocumentViewImportTest.java

Modified: jackrabbit/trunk/jackrabbit/src/test/java/org/apache/jackrabbit/test/api/DocumentViewImportTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit/src/test/java/org/apache/jackrabbit/test/api/DocumentViewImportTest.java?rev=427974&r1=427973&r2=427974&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit/src/test/java/org/apache/jackrabbit/test/api/DocumentViewImportTest.java
(original)
+++ jackrabbit/trunk/jackrabbit/src/test/java/org/apache/jackrabbit/test/api/DocumentViewImportTest.java
Wed Aug  2 06:22:59 2006
@@ -106,6 +106,13 @@
             SAXException, NotExecutableException {
 
         importXML(target, createSimpleDocument(), uuidBehaviour, withWorkspace);
+
+        // some implementations may require a refresh to get content
+        // added diretly to the workspace
+        if (withWorkspace) {
+            session.refresh(false);
+        }
+
         performTests();
     }
 
@@ -127,6 +134,13 @@
             SAXException, IOException, NotExecutableException {
 
         importWithHandler(target, createSimpleDocument(), uuidBehaviour, withWorkspace);
+
+        // some implementations may require a refresh to get content
+        // added diretly to the workspace
+        if (withWorkspace) {
+            session.refresh(false);
+        }
+
         performTests();
     }
 



Mime
View raw message