1 package test.methodselectors; 2 3 import org.testng.annotations.Test; 4 5 public class SampleTest { 6 7 @Test(groups = { "test1" }) test1()8 public void test1() { 9 ppp("TEST1"); 10 11 } 12 13 @Test(groups = { "test2" }) test2()14 public void test2() { 15 ppp("TEST2"); 16 } 17 18 @Test(groups = { "test3" }) test3()19 public void test3() { 20 ppp("TEST3"); 21 } 22 ppp(String s)23 private static void ppp(String s) { 24 if (false) { 25 System.out.println("[SampleTest] " + s); 26 } 27 } 28 } 29