1 package test.tmp; 2 3 import org.testng.annotations.Configuration; 4 import org.testng.annotations.Test; 5 6 public class Test0 { 7 8 @Configuration(beforeTest = true) setup()9 public void setup() { 10 System.out.println("setup"); 11 } 12 13 @Test(groups = { "G0" }) test()14 public void test() { 15 System.out.println("Test0.test"); 16 } 17 18 @Configuration(afterTest = true) tearDown()19 public void tearDown() { 20 System.out.println("tearDown"); 21 } 22 23 }