Home | History | Annotate | Download | only in multiple
      1 package test.multiple;
      2 
      3 import org.testng.annotations.Factory;
      4 
      5 import java.util.ArrayList;
      6 import java.util.List;
      7 
      8 /**
      9  * This class
     10  *
     11  * @author cbeust
     12  */
     13 public class ThisFactory {
     14 
     15   @Factory
     16   public Object[] create() {
     17     List result = new ArrayList();
     18     for (int i = 0; i < 10; i++) {
     19       result.add(new Test1());
     20     }
     21 
     22     return result.toArray();
     23   }
     24 
     25 }
     26