1 package test.factory;
2 
3 import org.testng.annotations.BeforeClass;
4 import org.testng.annotations.Factory;
5 
6 public class FactoryInterleavingSampleFactory {
7   @Factory
factory()8   public Object[] factory() {
9     return new Object[] {
10         new FactoryInterleavingSampleA(1), new FactoryInterleavingSampleA(2)
11     };
12   }
13 
14   @BeforeClass
beforeB()15   public void beforeB() {
16     System.out.println("Before B");
17   }
18 }
19 
20