1 package test.bug92; 2 3 import org.testng.annotations.BeforeTest; 4 5 public class TestBase { 6 7 static int beforeTestCount = 0; 8 static int beforeTestAlwaysCount = 0; 9 10 @BeforeTest baseTestBeforeTest()11 public void baseTestBeforeTest() { 12 beforeTestCount++; 13 } 14 15 @BeforeTest(alwaysRun = true) baseTestBeforeTestAlways()16 public void baseTestBeforeTestAlways() { 17 beforeTestAlwaysCount++; 18 } 19 20 }