01: package org.testng.annotations;
02:
03: import java.lang.annotation.Target;
04: import java.lang.annotation.Retention;
05:
06: /**
07: * List of exceptions that a test method is expected to throw.
08: *
09: * @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: */
21: public Class[] value();
22: }
|