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