org.springframework.test.annotation
Annotation Type ExpectedException


@Documented
@Retention(value=RUNTIME)
@Target(value=METHOD)
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
 Class<? extends Throwable> value
           
 

Element Detail

value

public abstract Class<? extends Throwable> value