1 package test.factory; 2 3 import org.testng.annotations.Factory; 4 5 public class FactoryBase { 6 7 @Factory 8 public Object[] create() { 9 return new Object[] { 10 new FactoryBaseSampleTest() 11 }; 12 } 13 } 14