| Line | |
|---|
| 1 | module testcases { |
|---|
| 2 | import from types all; |
|---|
| 3 | import from configuration all; |
|---|
| 4 | import from functions all; |
|---|
| 5 | testcase tc1() runs on sampleComponent1 system sampleComponent3{ |
|---|
| 6 | map(mtc:p1, system:p1) |
|---|
| 7 | map(mtc:p2, system:p2) |
|---|
| 8 | |
|---|
| 9 | f1(); |
|---|
| 10 | f2(1, "a") |
|---|
| 11 | |
|---|
| 12 | unmap(mtc:p1, system:p1) |
|---|
| 13 | unmap(mtc:p2, system:p2) |
|---|
| 14 | |
|---|
| 15 | } |
|---|
| 16 | |
|---|
| 17 | testcase tc2() runs on sampleComponent1 system sampleComponent3{ |
|---|
| 18 | map(mtc:p1, system:p1) |
|---|
| 19 | var sampleComponent2 component2, component3; |
|---|
| 20 | component2 := sampleComponent2.create; |
|---|
| 21 | component3 := sampleComponent2.create; |
|---|
| 22 | |
|---|
| 23 | component2.start(f3()); |
|---|
| 24 | component3.start(f4(1, "a")); |
|---|
| 25 | |
|---|
| 26 | unmap(mtc:p1, system:p1) |
|---|
| 27 | |
|---|
| 28 | } |
|---|
| 29 | |
|---|
| 30 | } |
|---|
Note: See
TracBrowser
for help on using the repository browser.