1package test.failures; 2 3import org.testng.annotations.Test; 4 5public class DependentTest { 6 7 @Test 8 public void f1() { 9 10 } 11 12 @Test(dependsOnMethods = {"f1"}, dependsOnGroups = { "f" }) 13 public void f2() { 14 throw new RuntimeException(); 15 } 16} 17