@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, unless you explicitly mark testable = true
Copyright © 2017 JBoss by Red Hat. All rights reserved.