我对 TestNG 有疑问。当我在 Eclipse 中运行测试时一切正常,但是当我在 ANT 中运行测试时出现错误:
TEST-RUN:
[testng] [TestNG] [Error]
[testng] Error creating object factory: class SomeClassTest
[testng] The tests failed.
在测试中我使用:
@ObjectFactory
public IObjectFactory getObjectFactory() {
return new PowerMockObjectFactory();
}