
Arquillian - DeploymentException
By: a guest on
Feb 1st, 2011 | syntax:
Java | size: 0.72 KB | views:
156 | expires: Never
@RunWith(Arquillian.class)
@Run(RunModeType.AS_CLIENT) // no in_container testing with DeploymentException
public class DeploymentExceptionTestCase
{
@Deployment(testable = false) @DeploymentException(WeldException.class)
public static JavaArchive createFailingDeployment()
{
return ShrinkWrap.create(JavaArchive.class)
.addManifestResource(
new StringAsset(
Descriptors.create(BeansDescriptor.class)
.interceptor(NotPartOfDeploymentInterceptor.class)
.exportAsString())
, "beans.xml");
}
@Test
public void doNothing_DeploymentExceptionExpected() {}
}