openpojo
openpojo copied to clipboard
Setting up logger so tests can pass when run after JavaLoggerTest
Similar to #135, there are other tests that fail when run after other tests in JavaLoggerTest
. The reason for the failure is the same, and so this pull request proposes to introduce the same logic to explicitly set the logger to Log4JLogger
before the tests that need it to be set up.
One thing to note is that these tests fail when run after tests in JavaLoggerTest
, so another potential way to fix is to (re)set the logger in a teardown method for JavaLoggerTest
. In this style, it would be good if LoggerFactory
provides a method to see what the active logger is so the test can set the active logger to that one.
Please let me know if you want to discuss the changes more.