1 package test.dependent;
2 
3 import org.testng.Assert;
4 import org.testng.annotations.Test;
5 
6 /**
7  * This class
8  *
9  * @author cbeust
10  */
11 public class SampleDependentMethods4 {
12 
13   @Test
step1()14   public void step1() {
15   }
16 
17   @Test(dependsOnMethods = { "step1" })
step2()18   public void step2() {
19     Assert.assertTrue(false, "Problem in step2");
20   }
21 
22   @Test(dependsOnMethods = { "step2" })
step3()23   public void step3() {
24   }
25 }
26