@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.Copyright © 2016 JBoss by Red Hat. All rights reserved.