1 package test.classgroup;
2 
3 import org.testng.annotations.Test;
4 
5 @Test(groups = { "first" })
6 public class First {
7   private static boolean m_first1 = false;
8   private static boolean m_first2 = false;
9 
10   @Test
first1()11   public void first1() {
12     m_first1 = true;
13   }
14 
15   @Test
first2()16   public void first2() {
17     m_first2 = true;
18   }
19 
allRun()20    static boolean allRun() {
21     return m_first1 && m_first2;
22   }
23 }