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

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


The following commit(s) were added to refs/heads/main by this push:
     new 245da43771 Refactor `log4j-gctests` (#2163)
245da43771 is described below

commit 245da43771412a7fc83b7a4d80c301008bb7474a
Author: Volkan Yazıcı <[email protected]>
AuthorDate: Wed Jan 10 14:27:41 2024 +0100

    Refactor `log4j-gctests` (#2163)
---
 .../log4j/core/test/categories/GarbageFree.java    |  22 --
 log4j-gc-test/pom.xml                              |  74 ++++++
 .../log4j/gctests/GcFreeAsyncLoggingTest.java      |   9 +-
 .../log4j/gctests/GcFreeLoggingTestUtil.java       |   4 +-
 .../gctests/GcFreeMixedSyncAsyncLoggingTest.java   |   5 +-
 .../gctests/GcFreeSynchronousLoggingTest.java      |   5 +-
 .../gctests/JsonTemplateLayoutGcFreeTest.java      |   5 +
 .../resources/gcFreeJsonTemplateLayoutLogging.xml  |   0
 .../src/test/resources/gcFreeLogging.xml           |   0
 .../test/resources/gcFreeMixedSyncAsyncLogging.xml |   0
 log4j-gctests/pom.xml                              | 284 ---------------------
 pom.xml                                            |   2 +-
 12 files changed, 87 insertions(+), 323 deletions(-)

diff --git 
a/log4j-core-test/src/main/java/org/apache/logging/log4j/core/test/categories/GarbageFree.java
 
b/log4j-core-test/src/main/java/org/apache/logging/log4j/core/test/categories/GarbageFree.java
deleted file mode 100644
index de421a2a13..0000000000
--- 
a/log4j-core-test/src/main/java/org/apache/logging/log4j/core/test/categories/GarbageFree.java
+++ /dev/null
@@ -1,22 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to you under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
- *
- *      http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.apache.logging.log4j.core.test.categories;
-
-/**
- * JUnit category to indicate a test is for Garbage Free Validation.
- */
-public interface GarbageFree {}
diff --git a/log4j-gc-test/pom.xml b/log4j-gc-test/pom.xml
new file mode 100644
index 0000000000..66a32be640
--- /dev/null
+++ b/log4j-gc-test/pom.xml
@@ -0,0 +1,74 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one or more
+  ~ contributor license agreements.  See the NOTICE file distributed with
+  ~ this work for additional information regarding copyright ownership.
+  ~ The ASF licenses this file to you under the Apache License, Version 2.0
+  ~ (the "License"); you may not use this file except in compliance with
+  ~ the License.  You may obtain a copy of the License at
+  ~
+  ~      http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing, software
+  ~ distributed under the License is distributed on an "AS IS" BASIS,
+  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  ~ See the License for the specific language governing permissions and
+  ~ limitations under the License.
+  -->
+<project xmlns="http://maven.apache.org/POM/4.0.0"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/maven-v4_0_0.xsd";>
+  <modelVersion>4.0.0</modelVersion>
+  <parent>
+    <groupId>org.apache.logging.log4j</groupId>
+    <artifactId>log4j</artifactId>
+    <version>${revision}</version>
+    <relativePath>../log4j-parent</relativePath>
+  </parent>
+
+  <artifactId>log4j-gc-test</artifactId>
+  <packaging>jar</packaging>
+  <name>Apache Log4j garbage collector tests</name>
+  <properties>
+    <maven.deploy.skip>true</maven.deploy.skip>
+    <maven.install.skip>true</maven.install.skip>
+  </properties>
+  <dependencies>
+    <dependency>
+      <groupId>org.apache.logging.log4j</groupId>
+      <artifactId>log4j-core</artifactId>
+      <scope>test</scope>
+    </dependency>
+    <dependency>
+      <groupId>org.apache.logging.log4j</groupId>
+      <artifactId>log4j-layout-template-json</artifactId>
+      <scope>test</scope>
+    </dependency>
+    <!-- Required for AsyncLoggers -->
+    <dependency>
+      <groupId>com.lmax</groupId>
+      <artifactId>disruptor</artifactId>
+      <scope>test</scope>
+      <optional>true</optional>
+    </dependency>
+    <dependency>
+      <groupId>org.junit.jupiter</groupId>
+      <artifactId>junit-jupiter-engine</artifactId>
+      <scope>test</scope>
+    </dependency>
+    <dependency>
+      <groupId>com.google.code.java-allocation-instrumenter</groupId>
+      <artifactId>java-allocation-instrumenter</artifactId>
+      <scope>test</scope>
+      <exclusions>
+        <exclusion>
+          <groupId>com.google.guava</groupId>
+          <artifactId>guava-testlib</artifactId>
+        </exclusion>
+      </exclusions>
+    </dependency>
+    <dependency>
+      <groupId>org.assertj</groupId>
+      <artifactId>assertj-core</artifactId>
+      <scope>test</scope>
+    </dependency>
+  </dependencies>
+</project>
diff --git 
a/log4j-gctests/src/test/java/org/apache/logging/log4j/gctests/GcFreeAsynchronousLoggingTest.java
 
b/log4j-gc-test/src/test/java/org/apache/logging/log4j/gctests/GcFreeAsyncLoggingTest.java
similarity index 87%
rename from 
log4j-gctests/src/test/java/org/apache/logging/log4j/gctests/GcFreeAsynchronousLoggingTest.java
rename to 
log4j-gc-test/src/test/java/org/apache/logging/log4j/gctests/GcFreeAsyncLoggingTest.java
index c6e6a6943d..7b49932dcc 100644
--- 
a/log4j-gctests/src/test/java/org/apache/logging/log4j/gctests/GcFreeAsynchronousLoggingTest.java
+++ 
b/log4j-gc-test/src/test/java/org/apache/logging/log4j/gctests/GcFreeAsyncLoggingTest.java
@@ -18,21 +18,18 @@ package org.apache.logging.log4j.gctests;
 
 import org.apache.logging.log4j.core.async.AsyncLoggerContextSelector;
 import org.apache.logging.log4j.core.impl.Log4jPropertyKey;
-import org.apache.logging.log4j.core.test.categories.GarbageFree;
 import org.apache.logging.log4j.spi.LoggingSystemProperty;
-import org.junit.experimental.categories.Category;
 import org.junit.jupiter.api.Tag;
 import org.junit.jupiter.api.Test;
 
 /**
  * Verifies steady state logging is GC-free.
  *
- * @see <a 
href="https://github.com/google/allocation-instrumenter";>https://github.com/google/allocation-instrumenter</a>
+ * @see <a href="https://github.com/google/allocation-instrumenter";>Google 
Allocation Instrumenter</a>
  */
 @Tag("allocation")
 @Tag("functional")
-@Category(GarbageFree.class)
-public class GcFreeAsynchronousLoggingTest {
+public class GcFreeAsyncLoggingTest {
 
     @Test
     public void testNoAllocationDuringSteadyStateLogging() throws Throwable {
@@ -49,6 +46,6 @@ public class GcFreeAsynchronousLoggingTest {
         System.setProperty(
                 Log4jPropertyKey.CONTEXT_SELECTOR_CLASS_NAME.getSystemKey(),
                 AsyncLoggerContextSelector.class.getName());
-        GcFreeLoggingTestUtil.executeLogging("gcFreeLogging.xml", 
GcFreeAsynchronousLoggingTest.class);
+        GcFreeLoggingTestUtil.executeLogging("gcFreeLogging.xml", 
GcFreeAsyncLoggingTest.class);
     }
 }
diff --git 
a/log4j-gctests/src/test/java/org/apache/logging/log4j/gctests/GcFreeLoggingTestUtil.java
 
b/log4j-gc-test/src/test/java/org/apache/logging/log4j/gctests/GcFreeLoggingTestUtil.java
similarity index 98%
rename from 
log4j-gctests/src/test/java/org/apache/logging/log4j/gctests/GcFreeLoggingTestUtil.java
rename to 
log4j-gc-test/src/test/java/org/apache/logging/log4j/gctests/GcFreeLoggingTestUtil.java
index c99c7100f7..561eeb140d 100644
--- 
a/log4j-gctests/src/test/java/org/apache/logging/log4j/gctests/GcFreeLoggingTestUtil.java
+++ 
b/log4j-gc-test/src/test/java/org/apache/logging/log4j/gctests/GcFreeLoggingTestUtil.java
@@ -47,10 +47,10 @@ import org.apache.logging.log4j.spi.LoggingSystemProperty;
 /**
  * Utility methods for the GC-free logging tests.
  */
-public enum GcFreeLoggingTestUtil {
+enum GcFreeLoggingTestUtil {
     ;
 
-    public static void executeLogging(final String configurationFile, final 
Class<?> testClass) throws Exception {
+    static void executeLogging(final String configurationFile, final Class<?> 
testClass) throws Exception {
 
         
System.setProperty(Log4jPropertyKey.GC_ENABLE_DIRECT_ENCODERS.getSystemKey(), 
"true");
         System.setProperty(LoggingSystemProperty.IS_WEBAPP.getSystemKey(), 
"false");
diff --git 
a/log4j-gctests/src/test/java/org/apache/logging/log4j/gctests/GcFreeMixedSyncAsyncLoggingTest.java
 
b/log4j-gc-test/src/test/java/org/apache/logging/log4j/gctests/GcFreeMixedSyncAsyncLoggingTest.java
similarity index 90%
rename from 
log4j-gctests/src/test/java/org/apache/logging/log4j/gctests/GcFreeMixedSyncAsyncLoggingTest.java
rename to 
log4j-gc-test/src/test/java/org/apache/logging/log4j/gctests/GcFreeMixedSyncAsyncLoggingTest.java
index 0f64683506..6f0784515d 100644
--- 
a/log4j-gctests/src/test/java/org/apache/logging/log4j/gctests/GcFreeMixedSyncAsyncLoggingTest.java
+++ 
b/log4j-gc-test/src/test/java/org/apache/logging/log4j/gctests/GcFreeMixedSyncAsyncLoggingTest.java
@@ -16,20 +16,17 @@
  */
 package org.apache.logging.log4j.gctests;
 
-import org.apache.logging.log4j.core.test.categories.GarbageFree;
 import org.apache.logging.log4j.spi.LoggingSystemProperty;
-import org.junit.experimental.categories.Category;
 import org.junit.jupiter.api.Tag;
 import org.junit.jupiter.api.Test;
 
 /**
  * Verifies steady state mixed synchronous and asynchronous logging is GC-free.
  *
- * @see <a 
href="https://github.com/google/allocation-instrumenter";>https://github.com/google/allocation-instrumenter</a>
+ * @see <a href="https://github.com/google/allocation-instrumenter";>Google 
Allocation Instrumenter</a>
  */
 @Tag("allocation")
 @Tag("functional")
-@Category(GarbageFree.class)
 public class GcFreeMixedSyncAsyncLoggingTest {
 
     @Test
diff --git 
a/log4j-gctests/src/test/java/org/apache/logging/log4j/gctests/GcFreeSynchronousLoggingTest.java
 
b/log4j-gc-test/src/test/java/org/apache/logging/log4j/gctests/GcFreeSynchronousLoggingTest.java
similarity index 89%
rename from 
log4j-gctests/src/test/java/org/apache/logging/log4j/gctests/GcFreeSynchronousLoggingTest.java
rename to 
log4j-gc-test/src/test/java/org/apache/logging/log4j/gctests/GcFreeSynchronousLoggingTest.java
index bae6fa322a..ee7b6f8198 100644
--- 
a/log4j-gctests/src/test/java/org/apache/logging/log4j/gctests/GcFreeSynchronousLoggingTest.java
+++ 
b/log4j-gc-test/src/test/java/org/apache/logging/log4j/gctests/GcFreeSynchronousLoggingTest.java
@@ -16,20 +16,17 @@
  */
 package org.apache.logging.log4j.gctests;
 
-import org.apache.logging.log4j.core.test.categories.GarbageFree;
 import org.apache.logging.log4j.spi.LoggingSystemProperty;
-import org.junit.experimental.categories.Category;
 import org.junit.jupiter.api.Tag;
 import org.junit.jupiter.api.Test;
 
 /**
  * Verifies steady state synchronous logging is GC-free.
  *
- * @see <a 
href="https://github.com/google/allocation-instrumenter";>https://github.com/google/allocation-instrumenter</a>
+ * @see <a href="https://github.com/google/allocation-instrumenter";>Google 
Allocation Instrumenter</a>
  */
 @Tag("allocation")
 @Tag("functional")
-@Category(GarbageFree.class)
 public class GcFreeSynchronousLoggingTest {
 
     @Test
diff --git 
a/log4j-gctests/src/test/java/org/apache/logging/log4j/gctests/JsonTemplateLayoutGcFreeTest.java
 
b/log4j-gc-test/src/test/java/org/apache/logging/log4j/gctests/JsonTemplateLayoutGcFreeTest.java
similarity index 89%
rename from 
log4j-gctests/src/test/java/org/apache/logging/log4j/gctests/JsonTemplateLayoutGcFreeTest.java
rename to 
log4j-gc-test/src/test/java/org/apache/logging/log4j/gctests/JsonTemplateLayoutGcFreeTest.java
index 8e3579db50..d27c04d81a 100644
--- 
a/log4j-gctests/src/test/java/org/apache/logging/log4j/gctests/JsonTemplateLayoutGcFreeTest.java
+++ 
b/log4j-gc-test/src/test/java/org/apache/logging/log4j/gctests/JsonTemplateLayoutGcFreeTest.java
@@ -20,6 +20,11 @@ import org.apache.logging.log4j.spi.LoggingSystemProperty;
 import org.junit.jupiter.api.Tag;
 import org.junit.jupiter.api.Test;
 
+/**
+ * Verifies steady state logging with JSON Template Layout is GC-free.
+ *
+ * @see <a href="https://github.com/google/allocation-instrumenter";>Google 
Allocation Instrumenter</a>
+ */
 @Tag("allocation")
 @Tag("functional")
 public class JsonTemplateLayoutGcFreeTest {
diff --git 
a/log4j-gctests/src/test/resources/gcFreeJsonTemplateLayoutLogging.xml 
b/log4j-gc-test/src/test/resources/gcFreeJsonTemplateLayoutLogging.xml
similarity index 100%
rename from log4j-gctests/src/test/resources/gcFreeJsonTemplateLayoutLogging.xml
rename to log4j-gc-test/src/test/resources/gcFreeJsonTemplateLayoutLogging.xml
diff --git a/log4j-gctests/src/test/resources/gcFreeLogging.xml 
b/log4j-gc-test/src/test/resources/gcFreeLogging.xml
similarity index 100%
rename from log4j-gctests/src/test/resources/gcFreeLogging.xml
rename to log4j-gc-test/src/test/resources/gcFreeLogging.xml
diff --git a/log4j-gctests/src/test/resources/gcFreeMixedSyncAsyncLogging.xml 
b/log4j-gc-test/src/test/resources/gcFreeMixedSyncAsyncLogging.xml
similarity index 100%
rename from log4j-gctests/src/test/resources/gcFreeMixedSyncAsyncLogging.xml
rename to log4j-gc-test/src/test/resources/gcFreeMixedSyncAsyncLogging.xml
diff --git a/log4j-gctests/pom.xml b/log4j-gctests/pom.xml
deleted file mode 100644
index fea3ff97e2..0000000000
--- a/log4j-gctests/pom.xml
+++ /dev/null
@@ -1,284 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-  ~ Licensed to the Apache Software Foundation (ASF) under one or more
-  ~ contributor license agreements.  See the NOTICE file distributed with
-  ~ this work for additional information regarding copyright ownership.
-  ~ The ASF licenses this file to you under the Apache License, Version 2.0
-  ~ (the "License"); you may not use this file except in compliance with
-  ~ the License.  You may obtain a copy of the License at
-  ~
-  ~      http://www.apache.org/licenses/LICENSE-2.0
-  ~
-  ~ Unless required by applicable law or agreed to in writing, software
-  ~ distributed under the License is distributed on an "AS IS" BASIS,
-  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-  ~ See the License for the specific language governing permissions and
-  ~ limitations under the License.
-  -->
-<project xmlns="http://maven.apache.org/POM/4.0.0"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/maven-v4_0_0.xsd";>
-  <modelVersion>4.0.0</modelVersion>
-  <parent>
-    <groupId>org.apache.logging.log4j</groupId>
-    <artifactId>log4j</artifactId>
-    <version>${revision}</version>
-    <relativePath>../log4j-parent</relativePath>
-  </parent>
-
-  <artifactId>log4j-gctests</artifactId>
-  <packaging>jar</packaging>
-  <name>Apache Log4j Garbage Free Tests</name>
-  <description>Apache Log4j Implementation GC Tests</description>
-  <properties>
-    <log4jParentDir>${basedir}/..</log4jParentDir>
-    <maven.deploy.skip>true</maven.deploy.skip>
-    <maven.install.skip>true</maven.install.skip>
-  </properties>
-  <dependencies>
-    <!-- Naturally, all implementations require the log4j-api JAR -->
-    <dependency>
-      <groupId>org.apache.logging.log4j</groupId>
-      <artifactId>log4j-api</artifactId>
-    </dependency>
-    <dependency>
-      <groupId>org.apache.logging.log4j</groupId>
-      <artifactId>log4j-core</artifactId>
-    </dependency>
-    <dependency>
-      <groupId>org.apache.logging.log4j</groupId>
-      <artifactId>log4j-layout-template-json</artifactId>
-    </dependency>
-    <dependency>
-      <groupId>org.apache.logging.log4j</groupId>
-      <artifactId>log4j-plugins</artifactId>
-    </dependency>
-    <!-- Used for compressing to formats other than zip and gz -->
-    <dependency>
-      <groupId>org.apache.commons</groupId>
-      <artifactId>commons-compress</artifactId>
-      <optional>true</optional>
-    </dependency>
-    <!-- Alternative implementation of BlockingQueue using Conversant 
Disruptor for AsyncAppender -->
-    <dependency>
-      <groupId>com.conversantmedia</groupId>
-      <artifactId>disruptor</artifactId>
-      <optional>true</optional>
-    </dependency>
-    <!-- Required for AsyncLoggers -->
-    <dependency>
-      <groupId>com.lmax</groupId>
-      <artifactId>disruptor</artifactId>
-      <optional>true</optional>
-    </dependency>
-    <!-- Required for JSON support -->
-    <dependency>
-      <groupId>com.fasterxml.jackson.core</groupId>
-      <artifactId>jackson-core</artifactId>
-      <optional>true</optional>
-    </dependency>
-    <!-- Required for JSON support -->
-    <dependency>
-      <groupId>com.fasterxml.jackson.core</groupId>
-      <artifactId>jackson-databind</artifactId>
-      <optional>true</optional>
-    </dependency>
-    <!-- Required for XML layout and receiver support -->
-    <dependency>
-      <groupId>com.fasterxml.jackson.dataformat</groupId>
-      <artifactId>jackson-dataformat-xml</artifactId>
-      <optional>true</optional>
-    </dependency>
-    <!-- Required for YAML support (including JSON requirements) -->
-    <dependency>
-      <groupId>com.fasterxml.jackson.dataformat</groupId>
-      <artifactId>jackson-dataformat-yaml</artifactId>
-      <optional>true</optional>
-    </dependency>
-    <!-- Required for console color support in Windows -->
-    <dependency>
-      <groupId>org.fusesource.jansi</groupId>
-      <artifactId>jansi</artifactId>
-      <optional>true</optional>
-    </dependency>
-    <dependency>
-      <groupId>org.junit.jupiter</groupId>
-      <artifactId>junit-jupiter-engine</artifactId>
-    </dependency>
-    <dependency>
-      <groupId>org.junit.jupiter</groupId>
-      <artifactId>junit-jupiter-migrationsupport</artifactId>
-    </dependency>
-    <dependency>
-      <groupId>org.junit.jupiter</groupId>
-      <artifactId>junit-jupiter-params</artifactId>
-    </dependency>
-    <!-- JUnit, naturally -->
-    <dependency>
-      <groupId>org.junit.vintage</groupId>
-      <artifactId>junit-vintage-engine</artifactId>
-    </dependency>
-    <!-- POM for jackson-dataformat-xml 2.9.2 depends on woodstox-core 5.0.3 
-->
-    <dependency>
-      <groupId>com.fasterxml.woodstox</groupId>
-      <artifactId>woodstox-core</artifactId>
-      <optional>true</optional>
-    </dependency>
-    <!-- TEST DEPENDENCIES -->
-    <!-- Pull in useful test classes from API -->
-    <dependency>
-      <groupId>org.apache.logging.log4j</groupId>
-      <artifactId>log4j-api-test</artifactId>
-      <scope>test</scope>
-    </dependency>
-    <dependency>
-      <groupId>org.apache.logging.log4j</groupId>
-      <artifactId>log4j-core-test</artifactId>
-      <scope>test</scope>
-    </dependency>
-    <!-- And test plugins -->
-    <dependency>
-      <groupId>org.apache.logging.log4j</groupId>
-      <artifactId>log4j-plugins-test</artifactId>
-      <scope>test</scope>
-    </dependency>
-    <dependency>
-      <groupId>org.apache-extras.beanshell</groupId>
-      <artifactId>bsh</artifactId>
-      <scope>test</scope>
-    </dependency>
-    <!-- Other -->
-    <dependency>
-      <groupId>commons-codec</groupId>
-      <artifactId>commons-codec</artifactId>
-      <scope>test</scope>
-    </dependency>
-    <dependency>
-      <groupId>commons-io</groupId>
-      <artifactId>commons-io</artifactId>
-      <scope>test</scope>
-    </dependency>
-    <dependency>
-      <groupId>org.apache.commons</groupId>
-      <artifactId>commons-lang3</artifactId>
-      <scope>test</scope>
-    </dependency>
-    <dependency>
-      <groupId>org.apache.groovy</groupId>
-      <artifactId>groovy-dateutil</artifactId>
-      <scope>test</scope>
-    </dependency>
-    <dependency>
-      <groupId>org.apache.groovy</groupId>
-      <artifactId>groovy-jsr223</artifactId>
-      <scope>test</scope>
-    </dependency>
-    <dependency>
-      <groupId>com.h2database</groupId>
-      <artifactId>h2</artifactId>
-      <scope>test</scope>
-    </dependency>
-    <dependency>
-      <groupId>org.hamcrest</groupId>
-      <artifactId>hamcrest</artifactId>
-      <scope>test</scope>
-    </dependency>
-    <dependency>
-      <groupId>org.hdrhistogram</groupId>
-      <artifactId>HdrHistogram</artifactId>
-      <scope>test</scope>
-    </dependency>
-    <!-- Embedded JDBC drivers for database appender tests -->
-    <dependency>
-      <groupId>org.hsqldb</groupId>
-      <artifactId>hsqldb</artifactId>
-      <scope>test</scope>
-    </dependency>
-    <!-- GC-free -->
-    <dependency>
-      <groupId>com.google.code.java-allocation-instrumenter</groupId>
-      <artifactId>java-allocation-instrumenter</artifactId>
-      <scope>test</scope>
-      <exclusions>
-        <exclusion>
-          <groupId>com.google.guava</groupId>
-          <artifactId>guava-testlib</artifactId>
-        </exclusion>
-      </exclusions>
-    </dependency>
-    <!-- Zeroconf advertiser tests -->
-    <dependency>
-      <groupId>org.jmdns</groupId>
-      <artifactId>jmdns</artifactId>
-      <scope>test</scope>
-    </dependency>
-    <!-- Log4j 1.2 tests -->
-    <dependency>
-      <groupId>log4j</groupId>
-      <artifactId>log4j</artifactId>
-      <scope>test</scope>
-    </dependency>
-    <dependency>
-      <groupId>com.github.ivandzf</groupId>
-      <artifactId>log4j2-custom-layout</artifactId>
-      <scope>test</scope>
-    </dependency>
-    <!-- For testing log4j 2 2.x plugins -->
-    <dependency>
-      <groupId>com.vlkan.log4j2</groupId>
-      <artifactId>log4j2-logstash-layout</artifactId>
-      <scope>test</scope>
-    </dependency>
-    <!-- Mocking framework for use with JUnit -->
-    <dependency>
-      <groupId>org.mockito</groupId>
-      <artifactId>mockito-core</artifactId>
-      <scope>test</scope>
-    </dependency>
-    <dependency>
-      <groupId>org.mockito</groupId>
-      <artifactId>mockito-junit-jupiter</artifactId>
-      <scope>test</scope>
-    </dependency>
-    <!-- SLF4J tests -->
-    <dependency>
-      <groupId>org.slf4j</groupId>
-      <artifactId>slf4j-api</artifactId>
-      <scope>test</scope>
-    </dependency>
-    <!-- Used for testing HTTP Watcher -->
-    <dependency>
-      <groupId>com.github.tomakehurst</groupId>
-      <artifactId>wiremock-jre8</artifactId>
-      <scope>test</scope>
-    </dependency>
-    <dependency>
-      <groupId>org.xmlunit</groupId>
-      <artifactId>xmlunit-core</artifactId>
-      <scope>test</scope>
-    </dependency>
-    <dependency>
-      <groupId>org.xmlunit</groupId>
-      <artifactId>xmlunit-matchers</artifactId>
-      <scope>test</scope>
-    </dependency>
-    <!--  Apache Commons Compress -->
-    <dependency>
-      <groupId>org.tukaani</groupId>
-      <artifactId>xz</artifactId>
-      <scope>test</scope>
-    </dependency>
-  </dependencies>
-  <build>
-    <plugins>
-      <plugin>
-        <groupId>org.apache.maven.plugins</groupId>
-        <artifactId>maven-failsafe-plugin</artifactId>
-        <configuration>
-          <skipTests>true</skipTests>
-        </configuration>
-      </plugin>
-      <plugin>
-        <artifactId>maven-surefire-plugin</artifactId>
-      </plugin>
-    </plugins>
-  </build>
-</project>
diff --git a/pom.xml b/pom.xml
index cacae37ae7..8d6bc34c2f 100644
--- a/pom.xml
+++ b/pom.xml
@@ -246,7 +246,7 @@
     <module>log4j-csv</module>
     <module>log4j-docker</module>
     <module>log4j-flume-ng</module>
-    <module>log4j-gctests</module>
+    <module>log4j-gc-test</module>
     <module>log4j-iostreams</module>
     <module>log4j-jcl</module>
     <module>log4j-jctools</module>

Reply via email to