Home | History | Annotate | Download | only in dataprovider
      1 package test.dataprovider;
      2 
      3 import com.google.inject.Inject;
      4 import com.google.inject.name.Named;
      5 
      6 import org.testng.annotations.DataProvider;
      7 
      8 public class FieldInjectionProvider {
      9 
     10   @Inject @Named("test")
     11   private String value;
     12 
     13   @DataProvider(name = "injection")
     14   public Object[][] create() {
     15     return new Object[][] {
     16         new Object[] { value },
     17     };
     18   }
     19 }
     20