changeset 16:d2436fd71c61

modifidy TestCodeSegment
author one
date Fri, 28 Jun 2013 12:24:35 +0900
parents bf4a7f899c4e
children c767e7af4d88
files src/jungle/test/codesegment/log/practice/TestCodeSegment.java src/jungle/test/codesegment/practice/StartJungleCodeSegment.java src/jungle/test/core/NetworkDefaultJungle.java
diffstat 3 files changed, 9 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/jungle/test/codesegment/log/practice/TestCodeSegment.java	Thu Jun 27 21:10:10 2013 +0900
+++ b/src/jungle/test/codesegment/log/practice/TestCodeSegment.java	Fri Jun 28 12:24:35 2013 +0900
@@ -32,11 +32,14 @@
 
 public class TestCodeSegment extends CodeSegment {
 	
+	static Jungle jungle = new NetworkDefaultJungle(null,"hoge",new DefaultTreeEditor(new DefaultTraverser()));
+	
 	// create input datasegment arg1
 	Receiver arg1 = ids.create(CommandType.PEEK);
 	
 	public TestCodeSegment() {
 		arg1.setKey("log");
+		jungle.createNewTree("tree");
 	}
 	
 	@Override
--- a/src/jungle/test/codesegment/practice/StartJungleCodeSegment.java	Thu Jun 27 21:10:10 2013 +0900
+++ b/src/jungle/test/codesegment/practice/StartJungleCodeSegment.java	Fri Jun 28 12:24:35 2013 +0900
@@ -1,11 +1,14 @@
 package jungle.test.codesegment.practice;
 
+import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.JungleTree;
 import alice.codesegment.CodeSegment;
 
 public class StartJungleCodeSegment {
 	
 	public static void main(String[] args) {
-		CodeSegmentJournal cs = new CodeSegmentJournal();
+		JungleManager jm = new JungleManager();
+		JungleTree tree = jm.createTree("tree");
+		
 		
 		
 	}
--- a/src/jungle/test/core/NetworkDefaultJungle.java	Thu Jun 27 21:10:10 2013 +0900
+++ b/src/jungle/test/core/NetworkDefaultJungle.java	Fri Jun 28 12:24:35 2013 +0900
@@ -14,6 +14,7 @@
 import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.transaction.DefaultChangeSet;
 import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.transaction.DefaultTreeContext;
 import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.transaction.DefaultTreeNode;
+import jungle.test.codesegment.persistence.AliceJournal;
 import jungle.test.transaction.NetworkDefaultJungleTree;
 import fj.data.List;
 
@@ -25,7 +26,7 @@
 	
 	public NetworkDefaultJungle(Journal _journal,String _uuid,TreeEditor _editor)
 	{
-		journal = new NullJournal();
+		journal = new AliceJournal();
 		trees = new ConcurrentHashMap<String,JungleTree>();
 		uuid = _uuid;
 		editor = _editor;