1package test.dependent; 2 3import org.testng.annotations.Test; 4 5/** 6 * This class 7 * 8 * @author cbeust 9 */ 10public class SampleDependentMethods6 { 11 @Test(dependsOnMethods = { "step2" }) 12 public void step1() { 13 } 14 15 @Test(dependsOnMethods = { "step1" }) 16 public void step2() { 17 } 18} 19