01: package test.thread;
02:
03: import org.testng.annotations.Test;
04:
05: @Test
06: public class SequentialSample3Test extends BaseSequentialSample {
07:
08: @Test
09: public void f1() {
10: addId(Thread.currentThread().getId());
11: }
12:
13: @Test(dependsOnMethods="f1")
14: public void f2() {
15: addId(Thread.currentThread().getId());
16: }
17:
18: @Test(dependsOnMethods="f2")
19: public void f3() {
20: addId(Thread.currentThread().getId());
21: }
22:
23: }
|