jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mdue...@apache.org
Subject svn commit: r1309899 - /jackrabbit/oak/trunk/oak-core/src/test/java/org/apache/jackrabbit/oak/kernel/KernelNodeStateEditorTest.java
Date Thu, 05 Apr 2012 15:22:51 GMT
Author: mduerig
Date: Thu Apr  5 15:22:50 2012
New Revision: 1309899

URL: http://svn.apache.org/viewvc?rev=1309899&view=rev
Log:
OAK-9: Internal tree builder
refactor tests: use API instead of internal methods for transient modifications

Modified:
    jackrabbit/oak/trunk/oak-core/src/test/java/org/apache/jackrabbit/oak/kernel/KernelNodeStateEditorTest.java

Modified: jackrabbit/oak/trunk/oak-core/src/test/java/org/apache/jackrabbit/oak/kernel/KernelNodeStateEditorTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-core/src/test/java/org/apache/jackrabbit/oak/kernel/KernelNodeStateEditorTest.java?rev=1309899&r1=1309898&r2=1309899&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-core/src/test/java/org/apache/jackrabbit/oak/kernel/KernelNodeStateEditorTest.java
(original)
+++ jackrabbit/oak/trunk/oak-core/src/test/java/org/apache/jackrabbit/oak/kernel/KernelNodeStateEditorTest.java
Thu Apr  5 15:22:50 2012
@@ -262,13 +262,13 @@ public class KernelNodeStateEditorTest {
         TransientNodeState transientState = editor.getTransientState();
         assertEquals(3, transientState.getChildNodeCount());
 
-        transientState.removeNode("x");
+        editor.removeNode("x");
         assertEquals(2, transientState.getChildNodeCount());
 
-        transientState.addNode("a");
+        editor.addNode("a");
         assertEquals(3, transientState.getChildNodeCount());
 
-        transientState.addNode("x");
+        editor.addNode("x");
         assertEquals(4, transientState.getChildNodeCount());
     }
     
@@ -279,16 +279,16 @@ public class KernelNodeStateEditorTest {
         assertEquals(3, transientState.getPropertyCount());
 
         Scalar value = ScalarImpl.stringScalar("foo");
-        transientState.setProperty(new KernelPropertyState("a", value));
+        editor.setProperty(new KernelPropertyState("a", value));
         assertEquals(3, transientState.getPropertyCount());
 
-        transientState.removeProperty("a");
+        editor.removeProperty("a");
         assertEquals(2, transientState.getPropertyCount());
 
-        transientState.setProperty(new KernelPropertyState("x", value));
+        editor.setProperty(new KernelPropertyState("x", value));
         assertEquals(3, transientState.getPropertyCount());
 
-        transientState.setProperty(new KernelPropertyState("a", value));
+        editor.setProperty(new KernelPropertyState("a", value));
         assertEquals(4, transientState.getPropertyCount());
     }
     



Mime
View raw message