1 package test.tmp; 2 3 import org.testng.annotations.Configuration; 4 import org.testng.annotations.Test; 5 6 public class ConcreteTest extends Fixturable { 7 @Configuration(beforeTest=true, afterGroups="fixture") 8 public void beforeFixture() { 9 ppp("BEFORE"); 10 } 11 12 @Test(groups = "fixture") 13 public void test() { 14 ppp("TEST"); 15 } 16 17 18 private static void ppp(String s) { 19 System.out.println("[ConcreteTest] " + s); 20 } 21 } 22