1 package test.inheritance.testng471; 2 3 import org.junit.Assert; 4 import org.testng.annotations.*; 5 6 public class Class1 extends SuperClass1 { 7 8 @BeforeClass beforeClass1()9 public void beforeClass1() { 10 } 11 12 @AfterClass afterClass1()13 public void afterClass1() { 14 } 15 16 @BeforeMethod beforeMethodClass1()17 public void beforeMethodClass1() { 18 } 19 20 @AfterMethod afterMethodClass1()21 public void afterMethodClass1() { 22 Assert.fail(); 23 } 24 25 @Test test1_1()26 public void test1_1() { 27 } 28 29 @Test test1_2()30 public void test1_2() { 31 } 32 } 33