01: package test.dependent;
02:
03: import org.testng.annotations.Test;
04:
05: public class DepthDependencyTest {
06:
07: @Test(groups={"1"})
08: public void f1() {
09: throw new RuntimeException();
10: }
11:
12: @Test(groups={"2"},dependsOnGroups={"1"})
13: public void f2() {
14:
15: }
16:
17: @Test(groups={"3"},dependsOnGroups={"2"})
18: public void f3() {
19:
20: }
21: }
|