Uploaded image for project: 'Arquillian'
  1. Arquillian
  2. ARQ-70

Support Method argument injection

XMLWordPrintable

      TestEnrichers should be extended to support method argument injection.

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

      e.g:

      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);
      }
      

            aslak@redhat.com Aslak Knutsen
            aslak@redhat.com Aslak Knutsen
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: