阅读背景:

我在哪里配置JUnit测试类中的log4j?

来源:互联网 

Looking at the last JUnit test case I wrote, I called log4j's BasicConfigurator.configure() method inside the class constructor. That worked fine for running just that single class from Eclipse's "run as JUnit test case" command. But I realize it's incorrect: I'm pretty sure our main test suite runs all of these classes from one process, and therefore log4j configuration should be happening higher up somewhere.Looking at the last JUnit test case I wrote, I




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: