1 package test.dependent; 2 3 import org.testng.annotations.BeforeTest; 4 import org.testng.annotations.Test; 5 6 public class ClassWide1Test { 7 private static boolean m_ok = false; 8 9 @BeforeTest init()10 public void init() { 11 m_ok = false; 12 } 13 14 @Test m1()15 public void m1() { 16 m_ok = true; 17 } 18 m1WasRun()19 public static boolean m1WasRun() { 20 return m_ok; 21 } 22 } 23