jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ste...@apache.org
Subject svn commit: r384798 - /incubator/jackrabbit/trunk/jackrabbit/src/test/java/org/apache/jackrabbit/test/api/ExportDocViewTest.java
Date Fri, 10 Mar 2006 14:13:19 GMT
Author: stefan
Date: Fri Mar 10 06:13:17 2006
New Revision: 384798

URL: http://svn.apache.org/viewcvs?rev=384798&view=rev
Log:
fixing document view export test case: a repository that supports multi-value property serialization
is *not* required to escape space characters in single value properties.

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

Modified: incubator/jackrabbit/trunk/jackrabbit/src/test/java/org/apache/jackrabbit/test/api/ExportDocViewTest.java
URL: http://svn.apache.org/viewcvs/incubator/jackrabbit/trunk/jackrabbit/src/test/java/org/apache/jackrabbit/test/api/ExportDocViewTest.java?rev=384798&r1=384797&r2=384798&view=diff
==============================================================================
--- incubator/jackrabbit/trunk/jackrabbit/src/test/java/org/apache/jackrabbit/test/api/ExportDocViewTest.java
(original)
+++ incubator/jackrabbit/trunk/jackrabbit/src/test/java/org/apache/jackrabbit/test/api/ExportDocViewTest.java
Fri Mar 10 06:13:17 2006
@@ -546,16 +546,6 @@
                 }
             } else {
                 val = prop.getString();
-                if (exportMultivalProps) {
-                    val = escapeValues(val);
-                } else {
-                    // we could not decide if the repository exports multivalued
-                    // properties so we consider both possibilities
-                    String escapedVal = escapeValues(val);
-                    if (escapedVal.equals(attrVal)) {
-                        val = escapedVal;
-                    }
-                }
             }
         }
         if (isBinary && skipBinary) {
@@ -565,8 +555,9 @@
                     " exported although skipBinary is true",
                     "", attrVal);
         } else {
-            assertEquals("Value of property " + prop.getPath() +
-                    " is not exported correctly: ", val, attrVal);
+            assertTrue("Value of property " + prop.getPath() +
+                    " is not exported correctly: " + attrVal,
+                    val.equals(attrVal) || escapeValues(val).equals(attrVal));
         }
     }
 



Mime
View raw message