Mercurial > hg > Database > Christie
changeset 271:7f4be5f204b3
tweak
author | ichikitakahiro <e165713@ie.u-ryukyu.ac.jp> |
---|---|
date | Sat, 26 Jun 2021 10:45:58 +0900 |
parents | 1f2e6104b47b |
children | b592fe1d4a4e |
files | src/test/java/christie/example/Attendance/CallCodeGear.java src/test/java/christie/example/Attendance/StartAttendance.java src/test/java/christie/example/Attendance/Submission.java |
diffstat | 3 files changed, 8 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/test/java/christie/example/Attendance/CallCodeGear.java Sat Jun 26 10:16:05 2021 +0900 +++ b/src/test/java/christie/example/Attendance/CallCodeGear.java Sat Jun 26 10:45:58 2021 +0900 @@ -1,14 +1,18 @@ package christie.example.Attendance; +import christie.annotation.Take; import christie.codegear.CodeGear; import christie.codegear.CodeGearManager; public class CallCodeGear extends CodeGear { + @Take + int ack; + @Override protected void run(CodeGearManager cgm) { // put("ack", "true"); - getDGM("studentA").put("start", "true"); - System.out.println("hoge"); + System.out.println(ack); + getDGM("studentA").put("start", 1); cgm.setup(new CallCodeGear()); } }
--- a/src/test/java/christie/example/Attendance/StartAttendance.java Sat Jun 26 10:16:05 2021 +0900 +++ b/src/test/java/christie/example/Attendance/StartAttendance.java Sat Jun 26 10:45:58 2021 +0900 @@ -18,5 +18,6 @@ teacher.createRemoteDGM("student2","localhost",10002); studentA.createRemoteDGM("teacher","localhost",10000); student2.createRemoteDGM("teacher","localhost",10000); + teacher.getLocalDGM().put("ack", 100); } }
--- a/src/test/java/christie/example/Attendance/Submission.java Sat Jun 26 10:16:05 2021 +0900 +++ b/src/test/java/christie/example/Attendance/Submission.java Sat Jun 26 10:45:58 2021 +0900 @@ -7,7 +7,7 @@ public class Submission extends CodeGear { @Take - String start; + int start; @Override protected void run(CodeGearManager cgm) {