You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by ma...@apache.org on 2022/01/02 20:12:09 UTC

[logging-log4j2] branch master updated: Annotate another thread context test

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

mattsicker pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/logging-log4j2.git


The following commit(s) were added to refs/heads/master by this push:
     new 9e4df7d  Annotate another thread context test
9e4df7d is described below

commit 9e4df7de1d545bee8e3020f3b6c720243fddf262
Author: Matt Sicker <ma...@apache.org>
AuthorDate: Sun Jan 2 14:12:00 2022 -0600

    Annotate another thread context test
    
    Signed-off-by: Matt Sicker <ma...@apache.org>
---
 .../src/test/java/org/apache/logging/log4j/LoggerSupplierTest.java      | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/log4j-api-test/src/test/java/org/apache/logging/log4j/LoggerSupplierTest.java b/log4j-api-test/src/test/java/org/apache/logging/log4j/LoggerSupplierTest.java
index 1f70762..b575757 100644
--- a/log4j-api-test/src/test/java/org/apache/logging/log4j/LoggerSupplierTest.java
+++ b/log4j-api-test/src/test/java/org/apache/logging/log4j/LoggerSupplierTest.java
@@ -27,6 +27,7 @@ import org.apache.logging.log4j.message.SimpleMessage;
 import org.apache.logging.log4j.message.StringFormattedMessage;
 import org.apache.logging.log4j.message.ThreadDumpMessage;
 import org.apache.logging.log4j.test.TestLogger;
+import org.apache.logging.log4j.test.junit.UsingThreadContextMap;
 import org.apache.logging.log4j.util.Supplier;
 import org.junit.jupiter.api.AfterEach;
 import org.junit.jupiter.api.BeforeEach;
@@ -45,6 +46,7 @@ import static org.assertj.core.api.Assertions.assertThat;
  */
 @ResourceLock(Resources.LOCALE)
 @ResourceLock("log4j2.TestLogger")
+@UsingThreadContextMap
 public class LoggerSupplierTest {
 
     private final TestLogger logger = (TestLogger) LogManager.getLogger("LoggerTest");