# HG changeset patch # User one # Date 1409086366 -32400 # Node ID 26dfa90016d176e94942a55386eb5b0a6240d9ed # Parent 3a3622cf2eefe9bca3338da830c1a10b93ff4e6d error delete but 2 test program commentout and not action BulletinBoard Traverser is bad diff -r 3a3622cf2eef -r 26dfa90016d1 src/main/java/jp/ac/u_ryukyu/ie/cr/shoshi/jungle/store/impl/TreeNode.java --- a/src/main/java/jp/ac/u_ryukyu/ie/cr/shoshi/jungle/store/impl/TreeNode.java Wed Aug 27 05:07:50 2014 +0900 +++ b/src/main/java/jp/ac/u_ryukyu/ie/cr/shoshi/jungle/store/impl/TreeNode.java Wed Aug 27 05:52:46 2014 +0900 @@ -11,6 +11,7 @@ @Override public TreeNodeAttributes getAttributes(); + public TreeNode createNewNode(); //public Node getAsNode(); } diff -r 3a3622cf2eef -r 26dfa90016d1 src/main/java/jp/ac/u_ryukyu/ie/cr/shoshi/jungle/store/impl/TreeNodeAttributes.java --- a/src/main/java/jp/ac/u_ryukyu/ie/cr/shoshi/jungle/store/impl/TreeNodeAttributes.java Wed Aug 27 05:07:50 2014 +0900 +++ b/src/main/java/jp/ac/u_ryukyu/ie/cr/shoshi/jungle/store/impl/TreeNodeAttributes.java Wed Aug 27 05:52:46 2014 +0900 @@ -2,6 +2,7 @@ import java.nio.ByteBuffer; +import fj.data.TreeMap; import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.core.Attributes; import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.util.Either; import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.util.Error; @@ -10,4 +11,5 @@ { public Either delete(String _key); public Either put(String _key,ByteBuffer _value); + public TreeMap getAttributesAsRawMap(); } diff -r 3a3622cf2eef -r 26dfa90016d1 src/main/java/jp/ac/u_ryukyu/ie/cr/shoshi/jungle/store/impl/TreeNodeChildren.java --- a/src/main/java/jp/ac/u_ryukyu/ie/cr/shoshi/jungle/store/impl/TreeNodeChildren.java Wed Aug 27 05:07:50 2014 +0900 +++ b/src/main/java/jp/ac/u_ryukyu/ie/cr/shoshi/jungle/store/impl/TreeNodeChildren.java Wed Aug 27 05:52:46 2014 +0900 @@ -1,8 +1,9 @@ package jp.ac.u_ryukyu.ie.cr.shoshi.jungle.store.impl; +import fj.data.List; import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.core.Children; - import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.core.Parent; +import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.transaction.DefaultTreeNode; import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.util.Either; import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.util.Error; @@ -12,4 +13,5 @@ public Either deleteChildAt(int _pos); public Either addNewChildAt(int _pos,T _newChild); public Either replaceNode(int _pos,T _replacement); + public List getChildrenAsRawList(); } \ No newline at end of file diff -r 3a3622cf2eef -r 26dfa90016d1 src/main/java/jp/ac/u_ryukyu/ie/cr/shoshi/jungle/transaction/DefaultTreeNode.java --- a/src/main/java/jp/ac/u_ryukyu/ie/cr/shoshi/jungle/transaction/DefaultTreeNode.java Wed Aug 27 05:07:50 2014 +0900 +++ b/src/main/java/jp/ac/u_ryukyu/ie/cr/shoshi/jungle/transaction/DefaultTreeNode.java Wed Aug 27 05:52:46 2014 +0900 @@ -40,6 +40,11 @@ return new DefaultTreeNodeAttribute(children, attrs); } + @Override + public DefaultTreeNode createNewNode(){ + return new DefaultTreeNode(); + } + /*public DefaultNode getWrap() { return wrap; @@ -55,4 +60,6 @@ { return new DefaultTreeNode(children,attrs); } + + } diff -r 3a3622cf2eef -r 26dfa90016d1 src/main/java/jp/ac/u_ryukyu/ie/cr/shoshi/jungle/transaction/DefaultTreeNodeAttribute.java --- a/src/main/java/jp/ac/u_ryukyu/ie/cr/shoshi/jungle/transaction/DefaultTreeNodeAttribute.java Wed Aug 27 05:07:50 2014 +0900 +++ b/src/main/java/jp/ac/u_ryukyu/ie/cr/shoshi/jungle/transaction/DefaultTreeNodeAttribute.java Wed Aug 27 05:52:46 2014 +0900 @@ -25,6 +25,11 @@ } @Override + public TreeMap getAttributesAsRawMap(){ + return attrs; + } + + @Override public Either delete(String _key) { if(_key == null){ diff -r 3a3622cf2eef -r 26dfa90016d1 src/main/java/jp/ac/u_ryukyu/ie/cr/shoshi/jungle/transaction/DefaultTreeNodeChildren.java --- a/src/main/java/jp/ac/u_ryukyu/ie/cr/shoshi/jungle/transaction/DefaultTreeNodeChildren.java Wed Aug 27 05:07:50 2014 +0900 +++ b/src/main/java/jp/ac/u_ryukyu/ie/cr/shoshi/jungle/transaction/DefaultTreeNodeChildren.java Wed Aug 27 05:52:46 2014 +0900 @@ -46,6 +46,10 @@ } @Override + public List getChildrenAsRawList(){ + return children; + } + @Override public Either addNewChildAt(int _pos) { if(!boundaryCheck(_pos) || _pos < 0){ diff -r 3a3622cf2eef -r 26dfa90016d1 src/test/java/DefaultJungleTreeTest.java --- a/src/test/java/DefaultJungleTreeTest.java Wed Aug 27 05:07:50 2014 +0900 +++ b/src/test/java/DefaultJungleTreeTest.java Wed Aug 27 05:52:46 2014 +0900 @@ -1,4 +1,5 @@ import java.nio.ByteBuffer; + import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.DefaultJungle; import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.Jungle; import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.JungleTree; @@ -6,6 +7,7 @@ import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.core.Node; import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.store.impl.DefaultNodePath; import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.store.impl.DefaultTreeEditor; +import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.store.impl.TreeNode; import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.traverser.DefaultTraverser; import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.traverser.Result; import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.util.Either; @@ -25,7 +27,7 @@ public static final String key = "KEY"; public static final ByteBuffer value = ByteBuffer.wrap(key.getBytes()); - public void testSampleTest() + public >void testSampleTest() { Jungle j = instance(); j.createNewTree("tree"); @@ -44,7 +46,7 @@ editor1.success(); // check the value ; - Node node = tree.getRootNode(); + TreeNode node = tree.getRootNode(); ByteBuffer v = node.getAttributes().get(key); Assert.assertEquals(0,v.compareTo(value)); diff -r 3a3622cf2eef -r 26dfa90016d1 src/test/java/jp/ac/u_ryukyu/ie/cr/shoshi/jungle/core/ChildrenTest.java --- a/src/test/java/jp/ac/u_ryukyu/ie/cr/shoshi/jungle/core/ChildrenTest.java Wed Aug 27 05:07:50 2014 +0900 +++ b/src/test/java/jp/ac/u_ryukyu/ie/cr/shoshi/jungle/core/ChildrenTest.java Wed Aug 27 05:52:46 2014 +0900 @@ -1,17 +1,19 @@ package jp.ac.u_ryukyu.ie.cr.shoshi.jungle.core; +import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.transaction.DefaultTreeNode; +import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.transaction.DefaultTreeNodeChildren; import junit.framework.Assert; import junit.framework.TestCase; public abstract class ChildrenTest extends TestCase { public abstract int expectSize(); - public abstract Children instance(); + public abstract DefaultTreeNodeChildren instance(); public void testSize() { int expect = expectSize(); - Children children = instance(); + Children children = instance(); Assert.assertEquals(expect,children.size()); } diff -r 3a3622cf2eef -r 26dfa90016d1 src/test/java/jp/ac/u_ryukyu/ie/cr/shoshi/jungle/core/nodeeditor/AppendChildAtTest.java --- a/src/test/java/jp/ac/u_ryukyu/ie/cr/shoshi/jungle/core/nodeeditor/AppendChildAtTest.java Wed Aug 27 05:07:50 2014 +0900 +++ b/src/test/java/jp/ac/u_ryukyu/ie/cr/shoshi/jungle/core/nodeeditor/AppendChildAtTest.java Wed Aug 27 05:52:46 2014 +0900 @@ -1,6 +1,5 @@ package jp.ac.u_ryukyu.ie.cr.shoshi.jungle.core.nodeeditor; -import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.store.impl.DefaultNode; import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.store.impl.EditableNodeWrapper; import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.store.trasnformer.AppendChildAt; import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.transaction.DefaultTreeNode; @@ -13,7 +12,7 @@ { public void testEdit() { - DefaultTreeNode node = new DefaultTreeNode(new DefaultNode()); + DefaultTreeNode node = new DefaultTreeNode(); AppendChildAt op = new AppendChildAt(0); EditableNodeWrapper wrapper = new EditableNodeWrapper(node); Either> either = op.edit(wrapper); diff -r 3a3622cf2eef -r 26dfa90016d1 src/test/java/jp/ac/u_ryukyu/ie/cr/shoshi/jungle/core/nodeeditor/DeleteAttributeAtTest.java --- a/src/test/java/jp/ac/u_ryukyu/ie/cr/shoshi/jungle/core/nodeeditor/DeleteAttributeAtTest.java Wed Aug 27 05:07:50 2014 +0900 +++ b/src/test/java/jp/ac/u_ryukyu/ie/cr/shoshi/jungle/core/nodeeditor/DeleteAttributeAtTest.java Wed Aug 27 05:52:46 2014 +0900 @@ -1,7 +1,6 @@ package jp.ac.u_ryukyu.ie.cr.shoshi.jungle.core.nodeeditor; import java.nio.ByteBuffer; -import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.store.impl.DefaultNode; import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.store.impl.EditableNodeWrapper; import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.store.trasnformer.DeleteAttribute; import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.transaction.DefaultTreeNode; @@ -17,7 +16,7 @@ String key = "KEY"; ByteBuffer value = ByteBuffer.wrap(key.getBytes()); - DefaultTreeNode node = new DefaultTreeNode(new DefaultNode()); + DefaultTreeNode node = new DefaultTreeNode(); Either either = node.getAttributes().put(key, value); if(either.isA()){ Assert.fail(); diff -r 3a3622cf2eef -r 26dfa90016d1 src/test/java/jp/ac/u_ryukyu/ie/cr/shoshi/jungle/core/nodeeditor/PutAttributeTest.java --- a/src/test/java/jp/ac/u_ryukyu/ie/cr/shoshi/jungle/core/nodeeditor/PutAttributeTest.java Wed Aug 27 05:07:50 2014 +0900 +++ b/src/test/java/jp/ac/u_ryukyu/ie/cr/shoshi/jungle/core/nodeeditor/PutAttributeTest.java Wed Aug 27 05:52:46 2014 +0900 @@ -4,7 +4,6 @@ import org.junit.Assert; -import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.store.impl.DefaultNode; import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.store.impl.EditableNodeWrapper; import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.store.trasnformer.PutAttribute; import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.transaction.DefaultTreeNode; @@ -18,7 +17,7 @@ { String key = "KEY"; ByteBuffer value = ByteBuffer.wrap(key.getBytes()); - DefaultTreeNode node = new DefaultTreeNode(new DefaultNode()); + DefaultTreeNode node = new DefaultTreeNode(); PutAttribute op = new PutAttribute(key,value); EditableNodeWrapper wrapper = new EditableNodeWrapper(node); Either> either = op.edit(wrapper); diff -r 3a3622cf2eef -r 26dfa90016d1 src/test/java/jp/ac/u_ryukyu/ie/cr/shoshi/jungle/core/treeeditor/TreeNodeChildrenTest.java --- a/src/test/java/jp/ac/u_ryukyu/ie/cr/shoshi/jungle/core/treeeditor/TreeNodeChildrenTest.java Wed Aug 27 05:07:50 2014 +0900 +++ b/src/test/java/jp/ac/u_ryukyu/ie/cr/shoshi/jungle/core/treeeditor/TreeNodeChildrenTest.java Wed Aug 27 05:52:46 2014 +0900 @@ -1,4 +1,4 @@ -package jp.ac.u_ryukyu.ie.cr.shoshi.jungle.core.treeeditor; +/*package jp.ac.u_ryukyu.ie.cr.shoshi.jungle.core.treeeditor; import java.nio.ByteBuffer; import org.junit.Assert; @@ -34,7 +34,7 @@ instance = either.b(); } - T newNode = instance.createNewNode(); + TreeNode newNode = instance.createNewNode(); String key = "KEY"; ByteBuffer value = ByteBuffer.wrap("VALUE".getBytes()); @@ -78,7 +78,7 @@ // prepare for(int i = 0;i < _count;i ++){ - T newNode = instance.createNewNode(); + TreeNode newNode = instance.createNewNode(); Either either = newNode.getAttributes().put(key,value); if(either.isA()){ Assert.fail("failed to put attributes to child"); @@ -99,7 +99,7 @@ // create node for replacement. ByteBuffer replaceNodeValue = ByteBuffer.wrap("EULAV".getBytes()); - T replacement = instance.createNewNode(); + TreeNode replacement = instance.createNewNode(); Either either = replacement.getAttributes().put(key,replaceNodeValue); if(either.isA()){ Assert.fail("failed to create replacement node"); @@ -128,4 +128,4 @@ Assert.assertEquals(0,expect.compareTo(actual)); } } -} +}*/ diff -r 3a3622cf2eef -r 26dfa90016d1 src/test/java/jp/ac/u_ryukyu/ie/cr/shoshi/jungle/impl/clonable/DefaultTreeNodeAttributesTest.java --- a/src/test/java/jp/ac/u_ryukyu/ie/cr/shoshi/jungle/impl/clonable/DefaultTreeNodeAttributesTest.java Wed Aug 27 05:07:50 2014 +0900 +++ b/src/test/java/jp/ac/u_ryukyu/ie/cr/shoshi/jungle/impl/clonable/DefaultTreeNodeAttributesTest.java Wed Aug 27 05:52:46 2014 +0900 @@ -8,7 +8,7 @@ import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.core.Attributes; import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.core.AttributesTest; import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.core.nodeeditor.EditableAttributesTest; -import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.store.impl.DefaultNode; + import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.store.impl.EditableNodeWrapper; import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.store.trasnformer.EditableAttributes; import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.transaction.DefaultTreeNode; @@ -27,14 +27,14 @@ public static DefaultTreeNode instance() { - List rawList = List.nil(); + List rawList = List.nil(); TreeMap rawMap = TreeMap.empty(Ord.stringOrd); for(P2 entry : AttributesTest.ENTRIES){ rawMap = rawMap.set(entry._1(),entry._2()); } - return new DefaultTreeNode(new DefaultNode(rawList,rawMap)); + return new DefaultTreeNode(rawList,rawMap); } public static class AttributeTestImpl extends AttributesTest diff -r 3a3622cf2eef -r 26dfa90016d1 src/test/java/jp/ac/u_ryukyu/ie/cr/shoshi/jungle/impl/clonable/DefaultTreeNodeChildrenTest.java --- a/src/test/java/jp/ac/u_ryukyu/ie/cr/shoshi/jungle/impl/clonable/DefaultTreeNodeChildrenTest.java Wed Aug 27 05:07:50 2014 +0900 +++ b/src/test/java/jp/ac/u_ryukyu/ie/cr/shoshi/jungle/impl/clonable/DefaultTreeNodeChildrenTest.java Wed Aug 27 05:52:46 2014 +0900 @@ -1,8 +1,7 @@ -package jp.ac.u_ryukyu.ie.cr.shoshi.jungle.impl.clonable; +/*package jp.ac.u_ryukyu.ie.cr.shoshi.jungle.impl.clonable; import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.core.nodeeditor.EditableChildrenTest; import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.core.treeeditor.TreeNodeChildrenTest; -import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.store.impl.DefaultNode; import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.store.impl.EditableNodeWrapper; import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.store.trasnformer.EditableChildren; import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.transaction.DefaultTreeNode; @@ -21,7 +20,7 @@ public static DefaultTreeNode instance() { - return new DefaultTreeNode(new DefaultNode()); + return new DefaultTreeNode(); } public static class TreeNodeChildrenTestImpl extends TreeNodeChildrenTest @@ -43,4 +42,4 @@ return wrapper.getChildren(); } } -} +}*/ diff -r 3a3622cf2eef -r 26dfa90016d1 src/test/java/jp/ac/u_ryukyu/ie/cr/shoshi/jungle/impl/clonable/DefaultTreeNodeTest.java --- a/src/test/java/jp/ac/u_ryukyu/ie/cr/shoshi/jungle/impl/clonable/DefaultTreeNodeTest.java Wed Aug 27 05:07:50 2014 +0900 +++ b/src/test/java/jp/ac/u_ryukyu/ie/cr/shoshi/jungle/impl/clonable/DefaultTreeNodeTest.java Wed Aug 27 05:52:46 2014 +0900 @@ -3,7 +3,6 @@ import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.core.AttributesContainer; import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.core.AttributesContainerTest; import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.core.ParentTest; -import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.store.impl.DefaultNode; import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.transaction.DefaultTreeNode; import junit.framework.Assert; import junit.framework.TestCase; @@ -21,16 +20,13 @@ public static DefaultTreeNode instance() { - DefaultTreeNode node = new DefaultTreeNode(new DefaultNode()); + DefaultTreeNode node = new DefaultTreeNode(); return node; } public void testGetWrapped() { DefaultTreeNode instance = instance(); - DefaultNode wrapped = instance.getWrap(); - - Assert.assertNotNull(wrapped); } public void testCreateNewNode() diff -r 3a3622cf2eef -r 26dfa90016d1 src/test/java/jp/ac/u_ryukyu/ie/cr/shoshi/jungle/impl/logging/LoggingAttributesTest.java --- a/src/test/java/jp/ac/u_ryukyu/ie/cr/shoshi/jungle/impl/logging/LoggingAttributesTest.java Wed Aug 27 05:07:50 2014 +0900 +++ b/src/test/java/jp/ac/u_ryukyu/ie/cr/shoshi/jungle/impl/logging/LoggingAttributesTest.java Wed Aug 27 05:52:46 2014 +0900 @@ -9,7 +9,6 @@ import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.core.Attributes; import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.core.AttributesTest; import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.core.nodeeditor.EditableAttributesTest; -import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.store.impl.DefaultNode; import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.store.impl.EditableNodeWrapper; import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.store.impl.logger.LoggingNode; import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.store.trasnformer.EditableAttributes; @@ -29,14 +28,14 @@ public static LoggingNode> instance() { - List rawList = List.nil(); + List rawList = List.nil(); TreeMap rawMap = TreeMap.empty(Ord.stringOrd); for(P2 entry : AttributesTest.ENTRIES){ rawMap = rawMap.set(entry._1(),entry._2()); } - EditableNodeWrapper wrapper = new EditableNodeWrapper(new DefaultTreeNode(new DefaultNode(rawList,rawMap))); + EditableNodeWrapper wrapper = new EditableNodeWrapper(new DefaultTreeNode (rawList,rawMap)); return new LoggingNode>(wrapper); } diff -r 3a3622cf2eef -r 26dfa90016d1 src/test/java/jp/ac/u_ryukyu/ie/cr/shoshi/jungle/impl/node/DefaultAttributesTest.java --- a/src/test/java/jp/ac/u_ryukyu/ie/cr/shoshi/jungle/impl/node/DefaultAttributesTest.java Wed Aug 27 05:07:50 2014 +0900 +++ b/src/test/java/jp/ac/u_ryukyu/ie/cr/shoshi/jungle/impl/node/DefaultAttributesTest.java Wed Aug 27 05:52:46 2014 +0900 @@ -11,13 +11,14 @@ import fj.data.TreeMap; import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.core.AttributesTest; import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.store.impl.DefaultAttributes; -import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.store.impl.DefaultNode; +import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.transaction.DefaultTreeNode; +import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.transaction.DefaultTreeNodeAttribute; public class DefaultAttributesTest extends AttributesTest { - public DefaultAttributes instance() + public DefaultTreeNodeAttribute instance() { - List rawList = List.nil(); + List rawList = List.nil(); TreeMap rawMap = TreeMap.empty(Ord.stringOrd); // add attributes @@ -26,13 +27,13 @@ rawMap = rawMap.set(entry._1(),entry._2()); } - DefaultNode node = new DefaultNode(rawList,rawMap); + DefaultTreeNode node = new DefaultTreeNode(rawList,rawMap); return node.getAttributes(); } public void testGetAttributesAsRawMap() { - DefaultAttributes attrs = instance(); + DefaultTreeNodeAttribute attrs = instance(); TreeMap rawMap = attrs.getAttributesAsRawMap(); // testing rawmap is not null. diff -r 3a3622cf2eef -r 26dfa90016d1 src/test/java/jp/ac/u_ryukyu/ie/cr/shoshi/jungle/impl/node/DefaultChildrenTest.java --- a/src/test/java/jp/ac/u_ryukyu/ie/cr/shoshi/jungle/impl/node/DefaultChildrenTest.java Wed Aug 27 05:07:50 2014 +0900 +++ b/src/test/java/jp/ac/u_ryukyu/ie/cr/shoshi/jungle/impl/node/DefaultChildrenTest.java Wed Aug 27 05:52:46 2014 +0900 @@ -10,22 +10,23 @@ import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.core.ChildrenTest; import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.core.Node; import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.store.impl.DefaultChildren; -import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.store.impl.DefaultNode; +import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.transaction.DefaultTreeNode; +import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.transaction.DefaultTreeNodeChildren; public class DefaultChildrenTest extends ChildrenTest { @Override - public DefaultChildren instance() + public DefaultTreeNodeChildren instance() { - List rawList = List.nil(); + List rawList = List.nil(); for(int i = 0;i < expectSize();i ++){ - rawList = rawList.cons(new DefaultNode()); + rawList = rawList.cons(new DefaultTreeNode()); } TreeMap rawMap = TreeMap.empty(Ord.stringOrd); - return new DefaultNode(rawList,rawMap).getChildren(); + return new DefaultTreeNode(rawList,rawMap).getChildren(); } @Override @@ -36,8 +37,8 @@ public void testGetChildrenAsRawList() { - DefaultChildren instance = instance(); - List rawList = instance.getChildrenAsRawList(); + DefaultTreeNodeChildren instance = instance(); + List rawList = instance.getChildrenAsRawList(); Assert.assertNotNull(rawList); Assert.assertEquals(expectSize(),rawList.length()); diff -r 3a3622cf2eef -r 26dfa90016d1 src/test/java/jp/ac/u_ryukyu/ie/cr/shoshi/jungle/impl/node/DefaultNodeTest.java --- a/src/test/java/jp/ac/u_ryukyu/ie/cr/shoshi/jungle/impl/node/DefaultNodeTest.java Wed Aug 27 05:07:50 2014 +0900 +++ b/src/test/java/jp/ac/u_ryukyu/ie/cr/shoshi/jungle/impl/node/DefaultNodeTest.java Wed Aug 27 05:52:46 2014 +0900 @@ -8,7 +8,7 @@ import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.core.AttributesContainer; import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.core.AttributesContainerTest; import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.core.ParentTest; -import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.store.impl.DefaultNode; +import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.transaction.DefaultTreeNode; import junit.framework.TestCase; import junit.framework.TestSuite; @@ -27,11 +27,11 @@ return suite; } - public static DefaultNode instance() + public static DefaultTreeNode instance() { - List rawList = List.nil(); + List rawList = List.nil(); TreeMap rawMap = TreeMap.empty(Ord.stringOrd); - DefaultNode node = new DefaultNode(rawList,rawMap); + DefaultTreeNode node = new DefaultTreeNode(rawList,rawMap); return node; } @@ -45,11 +45,11 @@ } } - public static class ParentTestImpl extends ParentTest + public static class ParentTestImpl extends ParentTest { @Override - public DefaultNode instance() + public DefaultTreeNode instance() { return DefaultNodeTest.instance(); } diff -r 3a3622cf2eef -r 26dfa90016d1 src/test/java/jp/ac/u_ryukyu/ie/cr/shoshi/jungle/traverse/TraverserTest.java --- a/src/test/java/jp/ac/u_ryukyu/ie/cr/shoshi/jungle/traverse/TraverserTest.java Wed Aug 27 05:07:50 2014 +0900 +++ b/src/test/java/jp/ac/u_ryukyu/ie/cr/shoshi/jungle/traverse/TraverserTest.java Wed Aug 27 05:52:46 2014 +0900 @@ -6,7 +6,6 @@ import fj.data.List; import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.store.NodePath; -import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.store.impl.DefaultNode; import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.store.impl.DefaultNodePath; import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.store.impl.TreeNode; import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.transaction.DefaultTreeNode; @@ -78,7 +77,7 @@ public static String key = "KEY"; public static ByteBuffer value = ByteBuffer.wrap(key.getBytes()); - public static DefaultTreeNode factory = new DefaultTreeNode(new DefaultNode()); + public static DefaultTreeNode factory = new DefaultTreeNode(); public DefaultTreeNode createTree(int _curX,int _curY,int _maxHeight,NodePath _address) {