[arquillian-issues] [JBoss JIRA] (ARQ-2143) Deployments that expect exceptions are not testable.
Bartosz Majsak (JIRA)
issues at jboss.org
Wed Nov 15 12:57:00 EST 2017
[ https://issues.jboss.org/browse/ARQ-2143?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Bartosz Majsak updated ARQ-2143:
--------------------------------
Component/s: Base Implementation
> Deployments that expect exceptions are not testable.
> ----------------------------------------------------
>
> Key: ARQ-2143
> URL: https://issues.jboss.org/browse/ARQ-2143
> Project: Arquillian
> Issue Type: Bug
> Components: Base Implementation
> Reporter: John Ament
> Fix For: 1.1.14.Final
>
>
> Microprofile has some spec tests that rely on throwing exceptions on deployment. https://github.com/eclipse/microprofile-jwt-auth/blob/master/tck/src/test/java/org/eclipse/microprofile/jwt/tck/container/jaxrs/AppScopedTest.java#L45 is one such test (ignore that it doesn't extend Arquillian).
> The problem is that its not the code in the package that generates the exception, but classes added via an ArchiveProcessor, e.g. a CDI extension, that will generate the exception.
> I'm not sure the reasoning behind this behavior, but I don't see why {{ShouldThrowException}} implies that an archive is not testable. Can this behavior be changed?
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
More information about the arquillian-issues
mailing list