Mercurial > hg > Database > Christie
annotate src/main/java/christie/test/TestLocal/TestCodeGear.java @ 32:307ac87ddcf7
add TakeFrom annotation
author | Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp> |
---|---|
date | Thu, 15 Feb 2018 15:48:23 +0900 |
parents | e29900328fff |
children | e7bf1506810c |
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 |
3 import christie.annotation.Take; | |
4 import christie.codegear.CodeGear; | |
1
3ea61d0bfc34
add dependency proccess but not work
Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
5 import christie.codegear.CodeGearManager; |
26 | 6 import christie.datagear.dg.DataGear; |
0 | 7 |
1
3ea61d0bfc34
add dependency proccess but not work
Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
8 |
0 | 9 /** |
10 * Created by e125769 on 12/7/17. | |
11 */ | |
3
e3bb0eea73f2
resolve Annotation error and TestCodeGear is working
Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp>
parents:
2
diff
changeset
|
12 public class TestCodeGear extends CodeGear { |
0 | 13 |
32
307ac87ddcf7
add TakeFrom annotation
Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp>
parents:
31
diff
changeset
|
14 @Take |
31
e29900328fff
remove RemoteTake annotation
Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp>
parents:
28
diff
changeset
|
15 int hoge; |
6
3dcfe63d6394
set type to DataGear by Annotation
Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp>
parents:
3
diff
changeset
|
16 |
7
21372a589bd3
add CodeGearExecutor
Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp>
parents:
6
diff
changeset
|
17 public void run(CodeGearManager cgm){ |
31
e29900328fff
remove RemoteTake annotation
Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp>
parents:
28
diff
changeset
|
18 System.out.println(hoge); |
3
e3bb0eea73f2
resolve Annotation error and TestCodeGear is working
Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp>
parents:
2
diff
changeset
|
19 |
31
e29900328fff
remove RemoteTake annotation
Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp>
parents:
28
diff
changeset
|
20 if (hoge != 10){ |
10
4b608ce0c483
add local repeat test
Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp>
parents:
7
diff
changeset
|
21 cgm.setup(new TestCodeGear()); |
31
e29900328fff
remove RemoteTake annotation
Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp>
parents:
28
diff
changeset
|
22 getLocalDGM().put("hoge", hoge + 1); |
10
4b608ce0c483
add local repeat test
Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp>
parents:
7
diff
changeset
|
23 } |
0 | 24 } |
6
3dcfe63d6394
set type to DataGear by Annotation
Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp>
parents:
3
diff
changeset
|
25 |
0 | 26 } |