jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mreut...@apache.org
Subject svn commit: r328816 - /incubator/jackrabbit/trunk/src/test/org/apache/jackrabbit/test/api/AbstractImportXmlTest.java
Date Thu, 27 Oct 2005 07:11:42 GMT
Author: mreutegg
Date: Thu Oct 27 00:11:35 2005
New Revision: 328816

URL: http://svn.apache.org/viewcvs?rev=328816&view=rev
Log:
JCR-262: In AbstractImportXmlTest, a bug in getUnusedUri() causes URI length to grow too quickly,
causing test to fail when using ORM-PM

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

Modified: incubator/jackrabbit/trunk/src/test/org/apache/jackrabbit/test/api/AbstractImportXmlTest.java
URL: http://svn.apache.org/viewcvs/incubator/jackrabbit/trunk/src/test/org/apache/jackrabbit/test/api/AbstractImportXmlTest.java?rev=328816&r1=328815&r2=328816&view=diff
==============================================================================
--- incubator/jackrabbit/trunk/src/test/org/apache/jackrabbit/test/api/AbstractImportXmlTest.java
(original)
+++ incubator/jackrabbit/trunk/src/test/org/apache/jackrabbit/test/api/AbstractImportXmlTest.java
Thu Oct 27 00:11:35 2005
@@ -422,7 +422,7 @@
         String prefix = TEST_PREFIX;
         int i = 0;
         while (prefixes.contains(prefix)) {
-            prefix += i++;
+            prefix = TEST_PREFIX + i++;
         }
         return prefix;
     }
@@ -438,7 +438,7 @@
         String uri = TEST_URI;
         int i = 0;
         while (uris.contains(uri)) {
-            uri += i++;
+            uri = TEST_URI + i++;
         }
         return uri;
     }



Mime
View raw message