annotate src/main/java/christie/test/Remote/RemotePutTest.java @ 33:e7bf1506810c

change test code
author Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp>
date Thu, 15 Feb 2018 19:08:55 +0900
parents 307ac87ddcf7
children 7b405f622c5c
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
12
b49a926cbdd9 add RemotePutTest and that is working
Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp>
parents:
diff changeset
1 package christie.test.Remote;
b49a926cbdd9 add RemotePutTest and that is working
Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp>
parents:
diff changeset
2
33
e7bf1506810c change test code
Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp>
parents: 32
diff changeset
3 import christie.annotation.Peek;
12
b49a926cbdd9 add RemotePutTest and that is working
Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp>
parents:
diff changeset
4 import christie.annotation.Take;
b49a926cbdd9 add RemotePutTest and that is working
Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp>
parents:
diff changeset
5 import christie.codegear.CodeGear;
b49a926cbdd9 add RemotePutTest and that is working
Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp>
parents:
diff changeset
6 import christie.codegear.CodeGearManager;
b49a926cbdd9 add RemotePutTest and that is working
Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp>
parents:
diff changeset
7
b49a926cbdd9 add RemotePutTest and that is working
Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp>
parents:
diff changeset
8 public class RemotePutTest extends CodeGear {
b49a926cbdd9 add RemotePutTest and that is working
Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp>
parents:
diff changeset
9
32
307ac87ddcf7 add TakeFrom annotation
Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
10 @Take
307ac87ddcf7 add TakeFrom annotation
Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
11 public int count;
12
b49a926cbdd9 add RemotePutTest and that is working
Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp>
parents:
diff changeset
12
33
e7bf1506810c change test code
Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp>
parents: 32
diff changeset
13 @Peek
31
e29900328fff remove RemoteTake annotation
Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp>
parents: 26
diff changeset
14 public int cgmID;
25
76fac42a840e work RemoteTakeTest
Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp>
parents: 23
diff changeset
15
12
b49a926cbdd9 add RemotePutTest and that is working
Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp>
parents:
diff changeset
16 @Override
b49a926cbdd9 add RemotePutTest and that is working
Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp>
parents:
diff changeset
17 protected void run(CodeGearManager cgm) {
32
307ac87ddcf7 add TakeFrom annotation
Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
18 if (count != 10){
307ac87ddcf7 add TakeFrom annotation
Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
19 System.out.println(cgmID + " : " + count);
23
695705dba324 Increased commands by type
Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp>
parents: 20
diff changeset
20 cgm.setup(new RemotePutTest());
32
307ac87ddcf7 add TakeFrom annotation
Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
21 getDGM("remote").put("count", count + 1);
33
e7bf1506810c change test code
Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp>
parents: 32
diff changeset
22 //getDGM("remote").put("cgmID", cgm.cgmID);
12
b49a926cbdd9 add RemotePutTest and that is working
Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp>
parents:
diff changeset
23 }
b49a926cbdd9 add RemotePutTest and that is working
Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp>
parents:
diff changeset
24 }
b49a926cbdd9 add RemotePutTest and that is working
Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp>
parents:
diff changeset
25
b49a926cbdd9 add RemotePutTest and that is working
Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp>
parents:
diff changeset
26 }