Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @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() {}
- }
Add Comment
Please, Sign In to add comment