org.springframework.test.annotation
Annotation Type ExpectedException


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

Element Detail

value

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