You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by pk...@apache.org on 2023/01/20 20:12:20 UTC
[logging-log4j2] branch release-2.x updated: Add locks to locale-dependent tests
This is an automated email from the ASF dual-hosted git repository.
pkarwasz pushed a commit to branch release-2.x
in repository https://gitbox.apache.org/repos/asf/logging-log4j2.git
The following commit(s) were added to refs/heads/release-2.x by this push:
new cc7ab0f6fc Add locks to locale-dependent tests
cc7ab0f6fc is described below
commit cc7ab0f6fc8a95d02cbda890d2d2fa490491d5a7
Author: Piotr P. Karwasz <pi...@karwasz.org>
AuthorDate: Fri Jan 20 21:02:54 2023 +0100
Add locks to locale-dependent tests
---
log4j-api-test/src/test/java/org/apache/logging/log4j/LoggerTest.java | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/log4j-api-test/src/test/java/org/apache/logging/log4j/LoggerTest.java b/log4j-api-test/src/test/java/org/apache/logging/log4j/LoggerTest.java
index a147fd2a75..5d31da4046 100644
--- a/log4j-api-test/src/test/java/org/apache/logging/log4j/LoggerTest.java
+++ b/log4j-api-test/src/test/java/org/apache/logging/log4j/LoggerTest.java
@@ -229,6 +229,7 @@ public class LoggerTest {
}
@Test
+ @ResourceLock(value = org.junit.jupiter.api.parallel.Resources.LOCALE, mode = ResourceAccessMode.READ)
public void getFormatterLogger() {
// The TestLogger logger was already created in an instance variable for this class.
// The message factory is only used when the logger is created.
@@ -244,6 +245,7 @@ public class LoggerTest {
}
@Test
+ @ResourceLock(value = org.junit.jupiter.api.parallel.Resources.LOCALE, mode = ResourceAccessMode.READ)
public void getFormatterLogger_Class() {
// The TestLogger logger was already created in an instance variable for this class.
// The message factory is only used when the logger is created.
@@ -264,6 +266,7 @@ public class LoggerTest {
}
@Test
+ @ResourceLock(value = org.junit.jupiter.api.parallel.Resources.LOCALE, mode = ResourceAccessMode.READ)
public void getFormatterLogger_Object() {
// The TestLogger logger was already created in an instance variable for this class.
// The message factory is only used when the logger is created.
@@ -277,6 +280,7 @@ public class LoggerTest {
}
@Test
+ @ResourceLock(value = org.junit.jupiter.api.parallel.Resources.LOCALE, mode = ResourceAccessMode.READ)
public void getFormatterLogger_String() {
final StringFormatterMessageFactory messageFactory = StringFormatterMessageFactory.INSTANCE;
final TestLogger testLogger = (TestLogger) LogManager.getFormatterLogger("getLogger_String_StringFormatterMessageFactory");