1package test.configuration;
2
3import org.testng.annotations.AfterClass;
4import org.testng.annotations.BeforeClass;
5import org.testng.annotations.Test;
6
7public class ConfigurationDisabledSampleTest {
8
9  public static boolean m_afterWasRun;
10
11  @BeforeClass(alwaysRun = true)
12  public void before() {
13    m_afterWasRun = false;
14  }
15
16  @AfterClass(alwaysRun = true)
17  public void after() {
18    m_afterWasRun = true;
19  }
20
21  @Test
22  public void f1() {}
23
24  @Test(enabled = false)
25  public void f2() {}
26}