You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by "Romain Manni-Bucau (JIRA)" <ji...@apache.org> on 2013/12/29 20:16:50 UTC
[jira] [Closed] (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 ]
Romain Manni-Bucau closed TOMEE-1101.
-------------------------------------
Resolution: Invalid
Assignee: Romain Manni-Bucau
You miss the dependency:
<dependency>
<groupId>org.jboss.arquillian.testenricher</groupId>
<artifactId>arquillian-testenricher-cdi</artifactId>
<version>1.1.1.Final</version>
<scope>test</scope>
</dependency>
TomEE doesn't rely on arquillian enrichers for test class injection that's why you got it surely
> 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)