Spring Framework

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
 java.lang.Class<? extends java.lang.Throwable> value
          Deprecated.  
 

Element Detail

value

public abstract java.lang.Class<? extends java.lang.Throwable> value
Deprecated. 

Spring Framework