diff src/main/java/christie/test/StartTest.java @ 7:21372a589bd3

add CodeGearExecutor
author Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp>
date Wed, 27 Dec 2017 18:42:46 +0900
parents 3dcfe63d6394
children efaa7ad906b3
line wrap: on
line diff
--- a/src/main/java/christie/test/StartTest.java	Wed Dec 27 00:06:50 2017 +0900
+++ b/src/main/java/christie/test/StartTest.java	Wed Dec 27 18:42:46 2017 +0900
@@ -1,5 +1,6 @@
 package christie.test;
 
+import christie.codegear.CodeGearManager;
 import christie.codegear.StartCodeGear;
 
 import java.util.HashMap;
@@ -7,20 +8,22 @@
 public class StartTest extends StartCodeGear{
 
     public static void main(String args[]){
-        new StartTest().execute();
+        CodeGearManager cgm = createCGM("first");
+        cgm.setup(new StartTest());
     }
 
     @Override
-    public void run() {
-        TestCodeGear test = new TestCodeGear(createCGM("first"));
-        test.execute();
-        test.dgm.put("hoge", "hogehogehoge");
+    protected void run(CodeGearManager cgm) {
+        TestCodeGear cg = new TestCodeGear();
+        cgm.setup(cg);
+
+        localDGM.put("hoge", "hogehogehoge");
 
         int array[][] = {{1},{2},{3},{4}};
-        test.dgm.put("huga", array);
+        localDGM.put("huga", array);
 
         HashMap<String, Integer> piyo= new HashMap<>();
         piyo.put("piyoyo", 100);
-        test.dgm.put("piyo", piyo);
+        localDGM.put("piyo", piyo);
     }
 }