01: package test.tmp;
02:
03: import org.testng.annotations.Configuration;
04: import org.testng.annotations.Test;
05:
06: public class Test0 {
07:
08: @Configuration(beforeTest=true)
09: public void setup() {
10: System.out.println("setup");
11: }
12:
13: @Test(groups={"G0"})
14: public void test() {
15: System.out.println("Test0.test");
16: }
17:
18: @Configuration(afterTest=true)
19: public void tearDown() {
20: System.out.println("tearDown");
21: }
22:
23: }
|