1 package test.dependent; 2 3 import org.testng.annotations.Test; 4 5 6 /** 7 * This class verifies that when methods have dependents, they are run 8 * in the correct order. 9 * 10 * @author Cedric Beust, Aug 19, 2004 11 * 12 */ 13 public class OrderMethodTest extends BaseOrderMethodTest { 14 @Test(groups = { "1.0" }) z_first0()15 public void z_first0() { 16 // ppp("1.0"); 17 m_group1[0] = true; 18 } 19 20 @Test(groups = { "2.1" }, dependsOnGroups = { "1.0", "1.1" }) a_second1()21 public void a_second1() { 22 // ppp("2.1"); 23 verifyGroup(2, m_group1); 24 m_group2[1] = true; 25 } 26 27 @Test(groups = { "1.1" }) z_premiere1()28 public void z_premiere1() { 29 // ppp("1.1"); 30 m_group1[1] = true; 31 } 32 33 34 35 } 36