vy commented on code in PR #2015:
URL: https://github.com/apache/logging-log4j2/pull/2015#discussion_r1409054243
##########
log4j-to-slf4j/src/test/java/org/apache/logging/slf4j/LoggerTest.java:
##########
@@ -33,30 +33,28 @@
import org.apache.logging.log4j.message.ParameterizedMessageFactory;
import org.apache.logging.log4j.message.StringFormatterMessageFactory;
import org.apache.logging.log4j.spi.LoggingSystem;
-import org.junit.Before;
-import org.junit.ClassRule;
-import org.junit.Test;
+import org.apache.logging.log4j.test.junit.UsingStatusListener;
+import org.junit.jupiter.api.BeforeEach;
+import org.junit.jupiter.api.Test;
import org.slf4j.MDC;
-/**
- *
- */
+@UsingStatusListener
+@LoggerContextSource
public class LoggerTest {
- private static final String CONFIG =
"target/test-classes/logback-slf4j.xml";
-
- @ClassRule
- public static final LoggerContextRule CTX = new LoggerContextRule(CONFIG);
-
+ private static Object OBJ = new Object();
Review Comment:
This is not possible due to `IllegalAccessException` I shared above.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]