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 367a2b646c038f40dddaaa31b612dd34708349bf
Author: Volkan Yazıcı <[email protected]>
AuthorDate: Thu Nov 30 11:00:01 2023 +0100

    Fix Java 17 failures in `DefaultThreadContextMapTest`
---
 .../org/apache/logging/log4j/spi/DefaultThreadContextMapTest.java     | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/log4j-api-test/src/test/java/org/apache/logging/log4j/spi/DefaultThreadContextMapTest.java
 
b/log4j-api-test/src/test/java/org/apache/logging/log4j/spi/DefaultThreadContextMapTest.java
index 368fc3ca6f..a0ca976d73 100644
--- 
a/log4j-api-test/src/test/java/org/apache/logging/log4j/spi/DefaultThreadContextMapTest.java
+++ 
b/log4j-api-test/src/test/java/org/apache/logging/log4j/spi/DefaultThreadContextMapTest.java
@@ -25,10 +25,10 @@ import static org.junit.jupiter.api.Assertions.assertTrue;
 import java.util.HashMap;
 import java.util.Map;
 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.ClearSystemProperty;
-import org.junitpioneer.jupiter.SetSystemProperty;
 
 /**
  * Tests the {@code DefaultThreadContextMap} class.
@@ -228,7 +228,7 @@ public class DefaultThreadContextMapTest {
     }
 
     @Test
-    @SetSystemProperty(key = DefaultThreadContextMap.INHERITABLE_MAP, value = 
"true")
+    @SetTestProperty(key = DefaultThreadContextMap.INHERITABLE_MAP, value = 
"true")
     @InitializesThreadContext
     public void testThreadLocalInheritableIfConfigured() {
         ThreadContextMapFactory.init();

Reply via email to