logging-log4j2 icon indicating copy to clipboard operation
logging-log4j2 copied to clipboard

Various tests abuse static state that no longer works

Open jvz opened this issue 2 years ago • 0 comments

Description

There are numerous tests that abuse static state, system properties, and implicit startup ordering, and I've had to disable them for now as my attempts at porting them to use appropriate test extension functionality is not working with the way these tests were written. Most of them are in log4j-1.2-api:

  • AutoConfigTest
  • CategoryTest
  • LoggerTest
  • MapRewriteAppenderTest
  • PropertiesRollingWithPropertiesTest
  • RewriteAppenderTest
  • XmlConfigurationTest
  • XmlRollingWithPropertiesTest

In log4j-core, I also had to disable the following:

  • Log4jLogEventNanoTimeTest
  • ThreadContextDataInjectorTest

I'm documenting these all here so that they are not forgotten.

Edit: note that this is related to https://github.com/apache/logging-log4j2/issues/1977.

jvz avatar Nov 30 '23 21:11 jvz