• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 package org.testng.annotations;
2 
3 import java.lang.annotation.Retention;
4 import java.lang.annotation.Target;
5 
6 /**
7  * List of exceptions that a test method is expected to throw.
8  *
9  * @deprecated Use @Test(expectedExceptions = "...")
10  *
11  * @author Cedric Beust, Apr 26, 2004
12  *
13  */
14 @Retention(java.lang.annotation.RetentionPolicy.RUNTIME)
15 @Target(java.lang.annotation.ElementType.METHOD)
16 public @interface ExpectedExceptions {
17 
18   /**
19    * The list of exceptions expected to be thrown by this method.
20    */
value()21   public Class[] value();
22 }
23