• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 package test.dependent;
2 
3 import org.testng.Assert;
4 import org.testng.annotations.Test;
5 
6 
7 /**
8  * This class exercises dependent groups
9  *
10  * @author Cedric Beust, Aug 19, 2004
11  *
12  */
13 public class SampleDependent1 {
14 
15   @Test(groups = { "fail" })
fail()16   public void fail() {
17     Assert.assertTrue(false);
18   }
19 
20   @Test(dependsOnGroups = { "fail" })
shouldBeSkipped()21   public void shouldBeSkipped() {
22   }
23 }
24