By the way, LogbackListenerTest was totally unreliable as it had two tests calling LoggerFactory.getILoggerFactory() of which only the first invocation could possibly invoke StaticLoggerBinder.init(). To solve this problem, StaticLoggerBinderFriend.reset() needs to be called at the end of each test.
|