01: package test.factory;
02:
03: import org.testng.annotations.Factory;
04:
05: /**
06: * Factory to test that setUp methods are correctly interleaved even
07: * when we use similar instances of a same test class.
08: *
09: * @author cbeust
10: */
11: public class Factory2Test {
12:
13: @Factory()
14: public Object[] createObjects() {
15: return new Object[] { new Sample2(), new Sample2() };
16: }
17:
18: private static void ppp(String s) {
19: System.out.println("[FactoryTest] " + s);
20: }
21: }
|