ExpectedException (Spring Framework 3.2.1.RELEASE API)
Date: 2013-01-24

org.springframework.test.annotation

## Annotation Type ExpectedException

- Deprecated.
  as of Spring 3.1 in favor of using built-in support for declaring expected exceptions in the underlying testing framework (e.g., JUnit, TestNG, etc.)

      @Documented
      @Retention(value=RUNTIME)
      @Target(value=METHOD)
      @Deprecated
      public @interface ExpectedException

  Test annotation to indicate that a test method is required to throw the specified exception.
  Since:
    2.0
  Author:
    Rod Johnson, Sam Brannen

- - ### Required Element Summary

    Required Elements
    Modifier and Type | Required Element and Description
    --- | ---
    `Class<? extends Throwable>` | `value` Deprecated.

- - ### Element Detail

    - #### value

          public abstract Class<? extends Throwable> value

      Deprecated.