jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mdue...@apache.org
Subject svn commit: r1443904 - /jackrabbit/oak/trunk/oak-core/src/test/java/org/apache/jackrabbit/oak/plugins/memory/MemoryNodeBuilderTest.java
Date Fri, 08 Feb 2013 09:45:12 GMT
Author: mduerig
Date: Fri Feb  8 09:45:12 2013
New Revision: 1443904

URL: http://svn.apache.org/r1443904
Log:
OAK-614: AssertionError in MemoryNodeBuilder
cleanup

Modified:
    jackrabbit/oak/trunk/oak-core/src/test/java/org/apache/jackrabbit/oak/plugins/memory/MemoryNodeBuilderTest.java

Modified: jackrabbit/oak/trunk/oak-core/src/test/java/org/apache/jackrabbit/oak/plugins/memory/MemoryNodeBuilderTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-core/src/test/java/org/apache/jackrabbit/oak/plugins/memory/MemoryNodeBuilderTest.java?rev=1443904&r1=1443903&r2=1443904&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-core/src/test/java/org/apache/jackrabbit/oak/plugins/memory/MemoryNodeBuilderTest.java
(original)
+++ jackrabbit/oak/trunk/oak-core/src/test/java/org/apache/jackrabbit/oak/plugins/memory/MemoryNodeBuilderTest.java
Fri Feb  8 09:45:12 2013
@@ -103,9 +103,7 @@ public class MemoryNodeBuilderTest {
 
     @Test
     public void testReadOnRemoveNode() {
-        String[] names = {"x", "new"};
-
-        for (String name : names) {
+        for (String name : new String[] {"x", "new"}) {
             NodeBuilder root = new MemoryNodeBuilder(BASE);
             NodeBuilder child = root.child(name);
 
@@ -124,9 +122,7 @@ public class MemoryNodeBuilderTest {
 
     @Test
     public void testWriteOnRemoveNode() {
-        String[] names = {"x", "new"};
-
-        for (String name : names) {
+        for (String name : new String[] {"x", "new"}) {
             NodeBuilder root = new MemoryNodeBuilder(BASE);
             NodeBuilder child = root.child(name);
 



Mime
View raw message