1 package test.regression;
2 
3 import org.testng.ITestContext;
4 import org.testng.annotations.BeforeClass;
5 import org.testng.annotations.BeforeMethod;
6 import org.testng.annotations.Test;
7 
8 public class MyTestngTest2 extends MyTestngTest {
9 
10   @BeforeClass()
beforeClass(ITestContext tc)11   public void beforeClass(ITestContext tc) throws Exception {
12   }
13 
14   @BeforeMethod()
beforeMethod(ITestContext tc)15   public void beforeMethod(ITestContext tc) throws Exception {
16       //throw new Exception("fail me");
17   }
18   @Test()
test(ITestContext tc)19   public void test(ITestContext tc) {
20   }
21 }
22