The Spring Framework

org.springframework.test.annotation
Annotation Type ExpectedException


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

Test annotation to indicate that a test method is required to throw one or more of these exceptions.

Since:
2.0
Author:
Rod Johnson

Required Element Summary
 Class<? extends Throwable> value
           
 

Element Detail

value

public abstract Class<? extends Throwable> value

The Spring Framework

Copyright © 2002-2007 The Spring Framework.