Skip to content

Commit 6d5064f

Browse files
committed
Make test classes private
1 parent 07b715d commit 6d5064f

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

log4j-core-test/src/test/java/org/apache/logging/log4j/core/async/AsyncThreadContextCopyOnWriteTest.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,14 @@
2727
// ThreadContext initialization will result in static final fields being set in various components.
2828
// To use a different ThreadContextMap, the test needs to be run in a new JVM.
2929
@Tag(Tags.ASYNC_LOGGERS)
30-
public class AsyncThreadContextCopyOnWriteTest extends AbstractAsyncThreadContextTestBase {
30+
class AsyncThreadContextCopyOnWriteTest extends AbstractAsyncThreadContextTestBase {
3131

3232
@TempLoggingDir
3333
private static Path loggingPath;
3434

3535
@ParameterizedTest
3636
@EnumSource
37-
public void testAsyncLogWritesToLog(Mode asyncMode) throws Exception {
37+
void testAsyncLogWritesToLog(Mode asyncMode) throws Exception {
3838
testAsyncLogWritesToLog(ContextImpl.COPY_ON_WRITE, asyncMode, loggingPath);
3939
}
4040
}

log4j-core-test/src/test/java/org/apache/logging/log4j/core/async/AsyncThreadContextDefaultTest.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,14 @@
2727
// ThreadContext initialization will result in static final fields being set in various components.
2828
// To use a different ThreadContextMap, the test needs to be run in a new JVM.
2929
@Tag(Tags.ASYNC_LOGGERS)
30-
public class AsyncThreadContextDefaultTest extends AbstractAsyncThreadContextTestBase {
30+
class AsyncThreadContextDefaultTest extends AbstractAsyncThreadContextTestBase {
3131

3232
@TempLoggingDir
3333
private static Path loggingPath;
3434

3535
@ParameterizedTest
3636
@EnumSource
37-
public void testAsyncLogWritesToLog(Mode asyncMode) throws Exception {
37+
void testAsyncLogWritesToLog(Mode asyncMode) throws Exception {
3838
testAsyncLogWritesToLog(ContextImpl.WEBAPP, asyncMode, loggingPath);
3939
}
4040
}

log4j-core-test/src/test/java/org/apache/logging/log4j/core/async/AsyncThreadContextGarbageFreeTest.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,14 @@
2727
// ThreadContext initialization will result in static final fields being set in various components.
2828
// To use a different ThreadContextMap, the test needs to be run in a new JVM.
2929
@Tag(Tags.ASYNC_LOGGERS)
30-
public class AsyncThreadContextGarbageFreeTest extends AbstractAsyncThreadContextTestBase {
30+
class AsyncThreadContextGarbageFreeTest extends AbstractAsyncThreadContextTestBase {
3131

3232
@TempLoggingDir
3333
private static Path loggingPath;
3434

3535
@ParameterizedTest
3636
@EnumSource
37-
public void testAsyncLogWritesToLog(Mode asyncMode) throws Exception {
37+
void testAsyncLogWritesToLog(final Mode asyncMode) throws Exception {
3838
testAsyncLogWritesToLog(ContextImpl.GARBAGE_FREE, asyncMode, loggingPath);
3939
}
4040
}

0 commit comments

Comments
 (0)