1package test.tmp; 2 3import org.testng.annotations.Configuration; 4import org.testng.annotations.Test; 5 6public class Test0 { 7 8 @Configuration(beforeTest = true) 9 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}