1package test.dependent;
2
3
4import static org.testng.Assert.assertTrue;
5
6import org.testng.annotations.Test;
7
8
9public class DifferentClassDependsOnGroupsTest1 {
10  @Test(groups = { "mainGroup" })
11  public void test0() {
12    assertTrue(1 == 0); // Force a failure
13  }
14
15  @Test(dependsOnGroups= {"mainGroup"})
16  public void test2() {
17  }
18}
19