@Documented
@Retention(value=RUNTIME)
@Target(value=METHOD)
public @interface ShouldThrowException
Usage Example:
@Deployment @ShouldThrowException(WeldDeploymentException.class)
public static WebArchive create() {
return ShrinkWrap.create(WebArchive.class);
}
Adding the @ShouldThrowException annotation will force the @Deployment
to be testable = false which again
will force a @RunAsClient
test run mode.Modifier and Type | Optional Element and Description |
---|---|
java.lang.Class<? extends java.lang.Exception> |
value |