@ObjectFactory public IObjectFactory getObjectFactory(ITestContext context) throws Exception { Class<?> clazz = Class.forName("org.activejpa.enhancer.ActiveJpaAgentLoaderImpl"); Method method = clazz.getMethod("loadAgent"); method.invoke(null); return new ObjectFactoryImpl(); }
@ObjectFactory public IObjectFactory getObjectFactory() { return new PowerMockObjectFactory(); }
@ObjectFactory public IObjectFactory getObjectFactory() { return new org.powermock.modules.testng.PowerMockObjectFactory(); }
@ObjectFactory public IObjectFactory setObjectFactory() { return new PowerMockObjectFactory(); }