diff src/main/java/christie/test/StartTest.java @ 2:bacdcb5e6dcf

change StartCodeGear static
author Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp>
date Tue, 12 Dec 2017 16:48:30 +0900
parents 3ea61d0bfc34
children e3bb0eea73f2
line wrap: on
line diff
--- a/src/main/java/christie/test/StartTest.java	Mon Dec 11 21:19:25 2017 +0900
+++ b/src/main/java/christie/test/StartTest.java	Tue Dec 12 16:48:30 2017 +0900
@@ -1,18 +1,12 @@
 package christie.test;
 
-import christie.codegear.CodeGearManager;
 import christie.codegear.StartCodeGear;
 import christie.datagear.StringData;
 
-import java.util.concurrent.ThreadPoolExecutor;
-
 public class StartTest implements StartCodeGear{
     public static void main(String args[]){
-        StartTest start = new StartTest();
         TestCodeGear test = new TestCodeGear();
-        CodeGearManager cgm = start.createCodeGearManager(start.createThreadPool());
-        test.setKey(cgm);
-        test.odg.initODG(cgm, test);
-        test.odg.put("hoge", new StringData("hogehogehoge"));
+        test.start(StartCodeGear.createCGM("first"));
+        test.put("hoge", new StringData("hogehogehoge"));
     }
 }