log4j - when to use PropertyConfigurator in tests?

Posted by waitinforatrain on Stack Overflow See other posts from Stack Overflow or by waitinforatrain
Published on 2010-03-12T21:44:26Z Indexed on 2010/03/12 21:47 UTC
Read the original article Hit count: 221

Filed under:
|
|

Hi,

I know you're supposed to only load log4j properties once, so what is standard practice when you're doing unit tests? Should I load it in every unit test file? Should I put it in jUnit's setUp() method?

Thanks

© Stack Overflow or respective owner

Related posts about java

Related posts about log4j