[
https://issues.apache.org/jira/browse/TOMEE-351?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Romain Manni-Bucau closed TOMEE-351.
------------------------------------
Resolution: Fixed
Now the following test passes:
@RunWith(Arquillian.class)
public class ExceptionInjectionTest {
@ArquillianResource
private DeploymentException de;
@ArquillianResource
private WebBeansConfigurationException owbException;
@ArquillianResource
private OpenEJBException oejbException;
@Deployment(testable = false)
@ShouldThrowException(DeploymentException.class)
public static WebArchive war() {
return ShrinkWrap.create(WebArchive.class)
.addAsWebInfResource(new
StringAsset(Descriptors.create(BeansDescriptor.class)
.createInterceptors()
.clazz("i.dont.exist.so.i.ll.make.the.deployment.fail")
.up()
.exportAsString()), ArchivePaths.create("beans.xml"));
}
@Test
public void checkSomeExceptionsOfTheHierarchy() {
assertNotNull(de);
assertNotNull(owbException);
assertNotNull(oejbException);
}
}
> ability to inject the DeploymentException using @ArquillianResource
> -------------------------------------------------------------------
>
> Key: TOMEE-351
> URL: https://issues.apache.org/jira/browse/TOMEE-351
> Project: TomEE
> Issue Type: Improvement
> Reporter: Romain Manni-Bucau
> Fix For: 1.1.0
>
>
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira