[arquillian-issues] [JBoss JIRA] Commented: (ARQ-104) TestEnrichment TestCase injection null in @Before

Radai Rosenblatt (JIRA) jira-events at lists.jboss.org
Sun Jan 23 02:32:49 EST 2011


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

Radai Rosenblatt commented on ARQ-104:
--------------------------------------

ok, i was a bit rash. what happened was that the @Before method was being invoked twice - once in the Junit runner context (no injection since this is outside the AS) and the other "inside" (with injections). any clues as to why such a thing might happen ?

> TestEnrichment TestCase injection null in @Before
> -------------------------------------------------
>
>                 Key: ARQ-104
>                 URL: https://issues.jboss.org/browse/ARQ-104
>             Project: Arquillian
>          Issue Type: Bug
>          Components: Runtime Enricher SPI
>    Affects Versions: 1.0.0.Alpha1
>            Reporter: Aslak Knutsen
>            Assignee: Aslak Knutsen
>             Fix For: 1.0.0.Alpha2
>
>
> Injection is done in the @Test cycle, should be moved to @Before cycle so one can setup injected resources before test is executed.

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the arquillian-issues mailing list