You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by "John D. Ament (JIRA)" <ji...@apache.org> on 2013/12/29 20:56:50 UTC

[jira] [Reopened] (TOMEE-1101) Test methods are not getting enriched when run via Arquillian

     [ https://issues.apache.org/jira/browse/TOMEE-1101?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

John D. Ament reopened TOMEE-1101:
----------------------------------


I'm reopening the issue.  This issue is in fact not invalid, as it would seem that you're saying that TomEE handles the enrichment directly (and shouldn't need the CDI enricher).  If this is the case, then this use case should be handled directly by TomEE's enricher (injecting method arguments).

I think this is a more common use case than you may realize, looking through my work's code base where we have one app with 120 arq integration tests, 50 of them include method injections of CDI beans.  If we were ever to test on TomEE (one of our goals for the year), none of these tests would work out of the box.

> Test methods are not getting enriched when run via Arquillian
> -------------------------------------------------------------
>
>                 Key: TOMEE-1101
>                 URL: https://issues.apache.org/jira/browse/TOMEE-1101
>             Project: TomEE
>          Issue Type: Bug
>          Components: TomEE Arquillian Adapters
>    Affects Versions: 1.6.0
>            Reporter: John D. Ament
>            Assignee: Romain Manni-Bucau
>
> While running some DS tests, found that test methods are not getting enriched as expected.
> The doc is here (from Arquillian): https://docs.jboss.org/author/display/ARQ/Dependency+injection
> The format of it seems to imply container is somewhat responsible for the enrichment (hence creating the ticket here rather than in the Arquillian JIRA).  
> An example test is this:     @Test
>     public void testSuccessfulAmbiguousLookup(@ExternalResource(storage = ClasspathStorage.class,
>             location="META-INF/beans.xml") List<InputStream> inputStreams)
>     {
>         Assert.assertTrue(inputStreams.size() > 1); //the count is different on as7 compared to the standalone setup
>     }
> Which seems to not be triggering the CDI producer.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)