This is an automated email from the ASF dual-hosted git repository.

vy pushed a commit to branch 2.x-java-17
in repository https://gitbox.apache.org/repos/asf/logging-log4j2.git

commit 0ddcdb8bdb882275d704567d7f0c2ed308c10456
Author: Volkan Yazıcı <[email protected]>
AuthorDate: Thu Nov 30 10:59:22 2023 +0100

    Fix Java 17 failures in `NoopThreadContextTest`
---
 .../test/java/org/apache/logging/log4j/NoopThreadContextTest.java | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git 
a/log4j-api-test/src/test/java/org/apache/logging/log4j/NoopThreadContextTest.java
 
b/log4j-api-test/src/test/java/org/apache/logging/log4j/NoopThreadContextTest.java
index 61add403b5..d4ce703b56 100644
--- 
a/log4j-api-test/src/test/java/org/apache/logging/log4j/NoopThreadContextTest.java
+++ 
b/log4j-api-test/src/test/java/org/apache/logging/log4j/NoopThreadContextTest.java
@@ -18,17 +18,15 @@ package org.apache.logging.log4j;
 
 import static org.junit.jupiter.api.Assertions.assertNull;
 
-import org.apache.logging.log4j.test.junit.InitializesThreadContext;
+import org.apache.logging.log4j.test.junit.SetTestProperty;
 import org.apache.logging.log4j.test.junit.UsingThreadContextMap;
 import org.junit.jupiter.api.Test;
-import org.junitpioneer.jupiter.SetSystemProperty;
 
 /**
  * Tests {@link ThreadContext}.
  */
-@SetSystemProperty(key = "log4j2.disableThreadContext", value = "true")
-@SetSystemProperty(key = "log4j2.disableThreadContextMap", value = "true")
-@InitializesThreadContext
+@SetTestProperty(key = "log4j2.disableThreadContext", value = "true")
+@SetTestProperty(key = "log4j2.disableThreadContextMap", value = "true")
 @UsingThreadContextMap
 public class NoopThreadContextTest {
 

Reply via email to