This is an automated email from the ASF dual-hosted git repository.
pkarwasz pushed a commit to branch 2.x
in repository https://gitbox.apache.org/repos/asf/logging-log4j2.git
The following commit(s) were added to refs/heads/2.x by this push:
new 6d5064faf7 Make test classes private
6d5064faf7 is described below
commit 6d5064faf79be983ba93d5f459de33553d043656
Author: Piotr P. Karwasz <[email protected]>
AuthorDate: Wed Jun 26 08:49:53 2024 +0200
Make test classes private
---
.../logging/log4j/core/async/AsyncThreadContextCopyOnWriteTest.java | 4 ++--
.../logging/log4j/core/async/AsyncThreadContextDefaultTest.java | 4 ++--
.../logging/log4j/core/async/AsyncThreadContextGarbageFreeTest.java | 4 ++--
3 files changed, 6 insertions(+), 6 deletions(-)
diff --git
a/log4j-core-test/src/test/java/org/apache/logging/log4j/core/async/AsyncThreadContextCopyOnWriteTest.java
b/log4j-core-test/src/test/java/org/apache/logging/log4j/core/async/AsyncThreadContextCopyOnWriteTest.java
index d42f350ff5..d37da33cf5 100644
---
a/log4j-core-test/src/test/java/org/apache/logging/log4j/core/async/AsyncThreadContextCopyOnWriteTest.java
+++
b/log4j-core-test/src/test/java/org/apache/logging/log4j/core/async/AsyncThreadContextCopyOnWriteTest.java
@@ -27,14 +27,14 @@ import org.junit.jupiter.params.provider.EnumSource;
// ThreadContext initialization will result in static final fields being set
in various components.
// To use a different ThreadContextMap, the test needs to be run in a new JVM.
@Tag(Tags.ASYNC_LOGGERS)
-public class AsyncThreadContextCopyOnWriteTest extends
AbstractAsyncThreadContextTestBase {
+class AsyncThreadContextCopyOnWriteTest extends
AbstractAsyncThreadContextTestBase {
@TempLoggingDir
private static Path loggingPath;
@ParameterizedTest
@EnumSource
- public void testAsyncLogWritesToLog(Mode asyncMode) throws Exception {
+ void testAsyncLogWritesToLog(Mode asyncMode) throws Exception {
testAsyncLogWritesToLog(ContextImpl.COPY_ON_WRITE, asyncMode,
loggingPath);
}
}
diff --git
a/log4j-core-test/src/test/java/org/apache/logging/log4j/core/async/AsyncThreadContextDefaultTest.java
b/log4j-core-test/src/test/java/org/apache/logging/log4j/core/async/AsyncThreadContextDefaultTest.java
index 0e84e2c8de..50f0e0a837 100644
---
a/log4j-core-test/src/test/java/org/apache/logging/log4j/core/async/AsyncThreadContextDefaultTest.java
+++
b/log4j-core-test/src/test/java/org/apache/logging/log4j/core/async/AsyncThreadContextDefaultTest.java
@@ -27,14 +27,14 @@ import org.junit.jupiter.params.provider.EnumSource;
// ThreadContext initialization will result in static final fields being set
in various components.
// To use a different ThreadContextMap, the test needs to be run in a new JVM.
@Tag(Tags.ASYNC_LOGGERS)
-public class AsyncThreadContextDefaultTest extends
AbstractAsyncThreadContextTestBase {
+class AsyncThreadContextDefaultTest extends AbstractAsyncThreadContextTestBase
{
@TempLoggingDir
private static Path loggingPath;
@ParameterizedTest
@EnumSource
- public void testAsyncLogWritesToLog(Mode asyncMode) throws Exception {
+ void testAsyncLogWritesToLog(Mode asyncMode) throws Exception {
testAsyncLogWritesToLog(ContextImpl.WEBAPP, asyncMode, loggingPath);
}
}
diff --git
a/log4j-core-test/src/test/java/org/apache/logging/log4j/core/async/AsyncThreadContextGarbageFreeTest.java
b/log4j-core-test/src/test/java/org/apache/logging/log4j/core/async/AsyncThreadContextGarbageFreeTest.java
index 4ede816304..250cc3944c 100644
---
a/log4j-core-test/src/test/java/org/apache/logging/log4j/core/async/AsyncThreadContextGarbageFreeTest.java
+++
b/log4j-core-test/src/test/java/org/apache/logging/log4j/core/async/AsyncThreadContextGarbageFreeTest.java
@@ -27,14 +27,14 @@ import org.junit.jupiter.params.provider.EnumSource;
// ThreadContext initialization will result in static final fields being set
in various components.
// To use a different ThreadContextMap, the test needs to be run in a new JVM.
@Tag(Tags.ASYNC_LOGGERS)
-public class AsyncThreadContextGarbageFreeTest extends
AbstractAsyncThreadContextTestBase {
+class AsyncThreadContextGarbageFreeTest extends
AbstractAsyncThreadContextTestBase {
@TempLoggingDir
private static Path loggingPath;
@ParameterizedTest
@EnumSource
- public void testAsyncLogWritesToLog(Mode asyncMode) throws Exception {
+ void testAsyncLogWritesToLog(final Mode asyncMode) throws Exception {
testAsyncLogWritesToLog(ContextImpl.GARBAGE_FREE, asyncMode,
loggingPath);
}
}