You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by gg...@apache.org on 2022/01/06 13:45:11 UTC

[logging-log4j2] 01/03: Follow current convention of test methods being prefixed with "test".

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

ggregory pushed a commit to branch release-2.x
in repository https://gitbox.apache.org/repos/asf/logging-log4j2.git

commit 433e738e90785b52eedbf974aaf866bb81bf8d27
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Thu Jan 6 08:32:55 2022 -0500

    Follow current convention of test methods being prefixed with "test".
---
 .../logging/log4j/core/appender/AsyncAppenderTest.java     | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/log4j-core/src/test/java/org/apache/logging/log4j/core/appender/AsyncAppenderTest.java b/log4j-core/src/test/java/org/apache/logging/log4j/core/appender/AsyncAppenderTest.java
index 685b729..3c4e0a3 100644
--- a/log4j-core/src/test/java/org/apache/logging/log4j/core/appender/AsyncAppenderTest.java
+++ b/log4j-core/src/test/java/org/apache/logging/log4j/core/appender/AsyncAppenderTest.java
@@ -72,7 +72,7 @@ public class AsyncAppenderTest {
 
     @Test
     @LoggerContextSource("log4j-asynch.xml")
-    public void defaultAsyncAppenderConfig(final LoggerContext context) throws InterruptedException {
+    public void testDefaultAsyncAppenderConfig(final LoggerContext context) throws InterruptedException {
         rewriteTest(context);
         exceptionTest(context);
 
@@ -87,7 +87,7 @@ public class AsyncAppenderTest {
 
     @Test
     @LoggerContextSource("BlockingQueueFactory-ArrayBlockingQueue.xml")
-    public void arrayBlockingQueue(final LoggerContext context) throws InterruptedException {
+    public void testArrayBlockingQueue(final LoggerContext context) throws InterruptedException {
         rewriteTest(context);
         exceptionTest(context);
     }
@@ -95,7 +95,7 @@ public class AsyncAppenderTest {
     @Test
     @Tag("disruptor")
     @LoggerContextSource("BlockingQueueFactory-DisruptorBlockingQueue.xml")
-    public void disruptorBlockingQueue(final LoggerContext context) throws InterruptedException {
+    public void testDisruptorBlockingQueue(final LoggerContext context) throws InterruptedException {
         rewriteTest(context);
         exceptionTest(context);
     }
@@ -103,14 +103,14 @@ public class AsyncAppenderTest {
     @Test
     @Tag("jctools")
     @LoggerContextSource("BlockingQueueFactory-JCToolsBlockingQueue.xml")
-    public void jcToolsBlockingQueue(final LoggerContext context) throws InterruptedException {
+    public void testJcToolsBlockingQueue(final LoggerContext context) throws InterruptedException {
         rewriteTest(context);
         exceptionTest(context);
     }
 
     @Test
     @LoggerContextSource("BlockingQueueFactory-LinkedTransferQueue.xml")
-    public void linkedTransferQueue(final LoggerContext context) throws InterruptedException {
+    public void testLinkedTransferQueue(final LoggerContext context) throws InterruptedException {
         rewriteTest(context);
         exceptionTest(context);
     }
@@ -118,14 +118,14 @@ public class AsyncAppenderTest {
     @Test
     @Timeout(5)
     @LoggerContextSource("log4j-asynch-shutdownTimeout.xml")
-    public void shutdownTimeout(final LoggerContext context) {
+    public void testShutdownTimeout(final LoggerContext context) {
         context.getLogger("Logger").info("This is a test");
         context.stop();
     }
 
     @Test
     @LoggerContextSource("log4j-asynch-no-location.xml")
-    public void noLocationInformation(final LoggerContext context, @Named("List") final ListAppender appender) throws InterruptedException {
+    public void testNoLocationInformation(final LoggerContext context, @Named("List") final ListAppender appender) throws InterruptedException {
         final ExtendedLogger logger = context.getLogger(getClass());
         logger.error("This is a test");
         logger.warn("Hello world!");