1 package test.skipex;
2 
3 import org.testng.SkipException;
4 import org.testng.TimeBombSkipException;
5 import org.testng.annotations.Test;
6 
7 
8 /**
9  * This class/interface
10  */
11 public class TestSkippedExceptionTest {
12   @Test
genericSkipException()13   public void genericSkipException() {
14     throw new SkipException("genericSkipException is skipped for now");
15   }
16 
17   @Test(expectedExceptions = SkipException.class)
genericExpectedSkipException()18   public void genericExpectedSkipException() {
19     throw new SkipException("genericExpectedSkipException should not be skipped");
20   }
21 
22   @Test
timedSkipException()23   public void timedSkipException() {
24     throw new TimeBombSkipException("timedSkipException is time bombed", "2007/04/10");
25   }
26 }
27