[arquillian-issues] [JBoss JIRA] Commented: (ARQ-113) Weld-Embedded container failing @RequestScope

Aslak Knutsen (JIRA) jira-events at lists.jboss.org
Thu Apr 22 18:34:16 EDT 2010


    [ https://jira.jboss.org/jira/browse/ARQ-113?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12527137#action_12527137 ] 

Aslak Knutsen commented on ARQ-113:
-----------------------------------

@RequestScope is only active from right before to right after @Test execution.

TestEnrichment is done in the @Before cycle.

Workaround: @RequestScope beans can be injected as method arguments.

@Test
public void test(@MyQualifier MyRequestScpebean bean , etc etc)


> Weld-Embedded container failing @RequestScope
> ---------------------------------------------
>
>                 Key: ARQ-113
>                 URL: https://jira.jboss.org/jira/browse/ARQ-113
>             Project: Arquillian
>          Issue Type: Bug
>    Affects Versions: 1.0.0.Alpha2
>            Reporter: Aslak Knutsen
>            Assignee: Aslak Knutsen
>             Fix For: 1.0.0.Alpha2
>
>
> Request scoped bean injection fails. No active Request scope

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the arquillian-issues mailing list