You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by "Trevor Baker (JIRA)" <ji...@apache.org> on 2012/12/17 20:30:13 UTC

[jira] [Commented] (OPENEJB-1954) Arquillian tests don't fail immediately if Test cannot be enriched

    [ https://issues.apache.org/jira/browse/OPENEJB-1954?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13534203#comment-13534203 ] 

Trevor Baker commented on OPENEJB-1954:
---------------------------------------

please close.
                
> Arquillian tests don't fail immediately if Test cannot be enriched
> ------------------------------------------------------------------
>
>                 Key: OPENEJB-1954
>                 URL: https://issues.apache.org/jira/browse/OPENEJB-1954
>             Project: OpenEJB
>          Issue Type: Bug
>          Components: arquillian
>    Affects Versions: 4.5.1
>         Environment: n/a
>            Reporter: Trevor Baker
>            Priority: Minor
>             Fix For: 4.5.1
>
>
> Injecting ABC -> Test
> Example #1:
> ABC has a field that uses a custom qualifier and the field's values are created/injected via javax.enterprise.inject.spi.Extension and javax.enterprise.inject.spi.Bean#create(CreationalContext<?> ctx). The create() op threw a CreationException (on purpose).
> Actual Results:
> 1. Nothing is logged (because exception is swallowed by org.apache.openejb.arquillian.common.enrichment.OpenEJBEnricher)
> 2. ABC is null in Test, test runs and later fails due to a NullPointerException when Test accesses ABC
> Expected Results:
> 1. Reason for creation failure is logged
> 2. Test fails on enrichment because ABC cannot be injected into Test. No tests are executed.
> Example #2:
> There is a RuntimeException in a @PostConstruct on ABC.
> Actual Results:
> 1. Error gets logged because of org.apache.webbeans.component.AbstractInjectionTargetBean#postConstructDefault(...)
> 2. ABC is null in Test, test runs and later fails due to a NullPointerException when Test accesses ABC
> Expected Results:
> 1. Test fails on enrichment because ABC cannot be injected into Test. No tests are executed.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira