[arquillian-issues] [JBoss JIRA] Created: (ARQ-70) Support Method argument injection

Aslak Knutsen (JIRA) jira-events at lists.jboss.org
Wed Feb 24 05:18:10 EST 2010


Support Method argument injection
---------------------------------

                 Key: ARQ-70
                 URL: https://jira.jboss.org/jira/browse/ARQ-70
             Project: Arquillian
          Issue Type: Feature Request
            Reporter: Aslak Knutsen
            Assignee: Aslak Knutsen


TestEnrichers should be extended to support method argument injection.

{code}
@Test
public void shouldBeAbleToInjectArguments(@Resource, @EJB, MyCDIBean) throws Exception
{
}
{code}

e.g:
{code}
public interface TestEnricher 
{ 
  /**
    * Extension point to add features to the test method arguments.
    * 
    * IE. Argument injection
    * 
    * @param method
    * @return Object[] that match the Field[] indexes. Return null at a specific index value if it can't be handeled. 
    */
   Object[] resolve(Method method);
}
{code}

-- 
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