jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ang...@apache.org
Subject svn commit: r521351 - /jackrabbit/trunk/contrib/spi/client/src/test/java/org/apache/jackrabbit/jcr2spi/ReorderTest.java
Date Thu, 22 Mar 2007 17:17:28 GMT
Author: angela
Date: Thu Mar 22 10:17:27 2007
New Revision: 521351

URL: http://svn.apache.org/viewvc?view=rev&rev=521351
Log:
minor improvement

Modified:
    jackrabbit/trunk/contrib/spi/client/src/test/java/org/apache/jackrabbit/jcr2spi/ReorderTest.java

Modified: jackrabbit/trunk/contrib/spi/client/src/test/java/org/apache/jackrabbit/jcr2spi/ReorderTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/contrib/spi/client/src/test/java/org/apache/jackrabbit/jcr2spi/ReorderTest.java?view=diff&rev=521351&r1=521350&r2=521351
==============================================================================
--- jackrabbit/trunk/contrib/spi/client/src/test/java/org/apache/jackrabbit/jcr2spi/ReorderTest.java
(original)
+++ jackrabbit/trunk/contrib/spi/client/src/test/java/org/apache/jackrabbit/jcr2spi/ReorderTest.java
Thu Mar 22 10:17:27 2007
@@ -62,6 +62,9 @@
         int i = 0;
         while (it.hasNext()) {
             Node child = it.nextNode();
+            if (i >= children.length) {
+                fail("Reorder removed a child node.");
+            }
             assertTrue(child.isSame(children[i]));
             i++;
         }



Mime
View raw message