01: package test.methodselectors;
02:
03: import org.testng.annotations.Test;
04:
05: public class SampleTest {
06:
07: @Test(groups={"test1"})
08: public void test1() {
09: ppp("TEST1");
10:
11: }
12:
13: @Test(groups={"test2"})
14: public void test2() {
15: ppp("TEST2");
16: }
17:
18: @Test(groups={"test3"})
19: public void test3() {
20: ppp("TEST3");
21: }
22:
23: private static void ppp(String s) {
24: if (false) {
25: System.out.println("[SampleTest] " + s);
26: }
27: }
28: }
|