Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 
 package org.jboss.arquillian.testng;
 
 
A IAnnotationTransformer that will add the TestEnricherDataProvider as org.testng.annotations.DataProvider to the given test method to enable method argument injection support.

Author(s):
Aslak Knutsen
Version:
$Revision: $
   /* (non-Javadoc)
    * @see org.testng.IAnnotationTransformer#transform(org.testng.annotations.ITestAnnotation, java.lang.Class, java.lang.reflect.Constructor, java.lang.reflect.Method)
    */
   @SuppressWarnings("rawtypes")
   public void transform(ITestAnnotation testAnnotationClass clazzConstructor constructorMethod method)
   {
      if (testAnnotation.getDataProviderClass() == null)
      {
         if (testAnnotation instanceof TestAnnotation)
         {
            TestAnnotation annoation = (TestAnnotationtestAnnotation;
            annoation.setDataProviderClass(TestEnricherDataProvider.class);
            annoation.setDataProvider(.);
         }
      }
   }
New to GrepCode? Check out our FAQ X