jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mdue...@apache.org
Subject svn commit: r1469395 - /jackrabbit/oak/trunk/oak-core/src/test/java/org/apache/jackrabbit/oak/plugins/memory/MemoryNodeBuilderTest.java
Date Thu, 18 Apr 2013 16:09:40 GMT
Author: mduerig
Date: Thu Apr 18 16:09:39 2013
New Revision: 1469395

URL: http://svn.apache.org/r1469395
Log:
OAK-781: Clarify / fix effects of MISSING_NODE as base state of NodeBuilder
simplify

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=1469395&r1=1469394&r2=1469395&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
Thu Apr 18 16:09:39 2013
@@ -199,7 +199,7 @@ public class MemoryNodeBuilderTest {
 
     @Test
     public void setNodeTest() {
-        MemoryNodeBuilder rootBuilder = new MemoryNodeBuilder(EmptyNodeState.EMPTY_NODE);
+        NodeBuilder rootBuilder = EMPTY_NODE.builder();
         rootBuilder.setNode("a", createBC(true));
 
         NodeState b = rootBuilder.getNodeState().getChildNode("a").getChildNode("c");
@@ -214,7 +214,7 @@ public class MemoryNodeBuilderTest {
 
     @Test
     public void assertion_OAK781() {
-        MemoryNodeBuilder rootBuilder = new MemoryNodeBuilder(EmptyNodeState.EMPTY_NODE);
+        NodeBuilder rootBuilder = EMPTY_NODE.builder();
         rootBuilder.child("a").setNode("b", createBC(false));
 
         NodeState r = rootBuilder.getNodeState();
@@ -238,7 +238,7 @@ public class MemoryNodeBuilderTest {
     @Test
     @Ignore("OAK-781")
     public void modifyChildNodeOfNonExistingNode() {
-        MemoryNodeBuilder rootBuilder = new MemoryNodeBuilder(EmptyNodeState.EMPTY_NODE);
+        NodeBuilder rootBuilder = EMPTY_NODE.builder();
 
         // +"/a":{"b":{"c":{"c":"cValue"}}} where b.exists() == false
         rootBuilder.child("a").setNode("b", createBC(false));
@@ -271,7 +271,7 @@ public class MemoryNodeBuilderTest {
 
     @Test
     public void shadowNonExistingNode1() {
-        MemoryNodeBuilder rootBuilder = new MemoryNodeBuilder(EmptyNodeState.EMPTY_NODE);
+        NodeBuilder rootBuilder = EMPTY_NODE.builder();
 
         // +"/a":{"b":{"c":{"c":"cValue"}}} where b.exists() == false
         rootBuilder.child("a").setNode("b", createBC(false));
@@ -305,7 +305,7 @@ public class MemoryNodeBuilderTest {
     @Test
     @Ignore("OAK-781")
     public void shadowNonExistingNode2() {
-        MemoryNodeBuilder rootBuilder = new MemoryNodeBuilder(EmptyNodeState.EMPTY_NODE);
+        NodeBuilder rootBuilder = EMPTY_NODE.builder();
 
         // +"/a":{"b":{"c":{"c":"cValue"}}} where b.exists() == false
         rootBuilder.child("a").setNode("b", createBC(false));



Mime
View raw message