Mercurial > hg > Database > Christie
annotate src/main/java/christie/test/TestLocal/TestCodeGear.java @ 272:b592fe1d4a4e default tip
create example Attendance
author | matac42 <matac@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Thu, 01 Jul 2021 20:41:07 +0900 |
parents | 4479d37c8e53 |
children |
rev | line source |
---|---|
12
b49a926cbdd9
add RemotePutTest and that is working
Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp>
parents:
10
diff
changeset
|
1 package christie.test.TestLocal; |
0 | 2 |
33 | 3 import christie.annotation.Peek; |
0 | 4 import christie.annotation.Take; |
5 import christie.codegear.CodeGear; | |
1
3ea61d0bfc34
add dependency proccess but not work
Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
6 import christie.codegear.CodeGearManager; |
26 | 7 import christie.datagear.dg.DataGear; |
0 | 8 |
1
3ea61d0bfc34
add dependency proccess but not work
Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
9 |
0 | 10 /** |
36 | 11 * LocalDGMからPeekとTakeを10回行うテスト |
0 | 12 * Created by e125769 on 12/7/17. |
13 */ | |
3
e3bb0eea73f2
resolve Annotation error and TestCodeGear is working
Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp>
parents:
2
diff
changeset
|
14 public class TestCodeGear extends CodeGear { |
0 | 15 |
33 | 16 @Peek |
17 String hoge; | |
18 | |
32
307ac87ddcf7
add TakeFrom annotation
Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp>
parents:
31
diff
changeset
|
19 @Take |
33 | 20 int count; |
6
3dcfe63d6394
set type to DataGear by Annotation
Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp>
parents:
3
diff
changeset
|
21 |
7
21372a589bd3
add CodeGearExecutor
Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp>
parents:
6
diff
changeset
|
22 public void run(CodeGearManager cgm){ |
33 | 23 System.out.println(count + " : " + hoge); |
3
e3bb0eea73f2
resolve Annotation error and TestCodeGear is working
Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp>
parents:
2
diff
changeset
|
24 |
33 | 25 if (count != 10){ |
10
4b608ce0c483
add local repeat test
Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp>
parents:
7
diff
changeset
|
26 cgm.setup(new TestCodeGear()); |
36 | 27 put("count", count + 1); |
10
4b608ce0c483
add local repeat test
Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp>
parents:
7
diff
changeset
|
28 } |
0 | 29 } |
6
3dcfe63d6394
set type to DataGear by Annotation
Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp>
parents:
3
diff
changeset
|
30 |
0 | 31 } |
36 | 32 |
33 |