1 package test.interleavedorder; 2 3 import org.testng.annotations.AfterClass; 4 import org.testng.annotations.BeforeClass; 5 6 7 public class TestChild1 extends BaseTestClass { 8 @BeforeClass beforeTestChildOneClass()9 public void beforeTestChildOneClass() { 10 ppp("beforeTestChild1Class"); 11 InterleavedInvocationTest.LOG.add("beforeTestChild1Class"); 12 } 13 14 @AfterClass afterTestChildOneClass()15 public void afterTestChildOneClass() { 16 ppp("afterTestChild1Class"); 17 InterleavedInvocationTest.LOG.add("afterTestChild1Class"); 18 } 19 ppp(String s)20 private void ppp(String s) { 21 if (false) { 22 System.out.println("[TestChild1] " + s); 23 } 24 } 25 } 26