111112113114115116117118119120121
} if(deploymentMethod.isAnnotationPresent(ShouldThrowException.class)) { deployment.setExpectedException(deploymentMethod.getAnnotation(ShouldThrowException.class).value()); deployment.shouldBeTestable(false); // can't test against failing deployments } return deployment; }