1package test.hook;
2
3import org.testng.IConfigurable;
4import org.testng.annotations.BeforeClass;
5import org.testng.annotations.BeforeMethod;
6import org.testng.annotations.BeforeSuite;
7import org.testng.annotations.BeforeTest;
8
9import java.lang.reflect.Method;
10
11abstract public class BaseConfigurable implements IConfigurable {
12  static int m_hookCount = 0;
13  static boolean m_bs = false;
14  static boolean m_bt = false;
15  static boolean m_bm = false;
16  static boolean m_bc = false;
17  static String m_methodName = null;
18
19  @BeforeSuite
20  public void bs() {
21    m_bs = true;
22  }
23
24  @BeforeTest
25  public void bt() {
26    m_bt = true;
27  }
28
29  @BeforeMethod
30  public void bm(Method m) {
31    m_bm = true;
32  }
33
34  @BeforeClass
35  public void bc() {
36    m_bc = true;
37  }
38
39}
40