From ebd45ebb7485c991d0751b4020807c782b046245 Mon Sep 17 00:00:00 2001 From: Joakim Erdfelt Date: Mon, 9 Jan 2023 09:42:40 -0600 Subject: [PATCH] Renaming TypeUtilTest.TestClass to .ExampleClass to avoid junit picking it up --- .../src/test/java/org/eclipse/jetty/util/TypeUtilTest.java | 4 ++-- .../jetty/util/test10/{TestClass.java => ExampleClass.java} | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) rename jetty-core/jetty-util/src/test/java/org/eclipse/jetty/util/test10/{TestClass.java => ExampleClass.java} (91%) diff --git a/jetty-core/jetty-util/src/test/java/org/eclipse/jetty/util/TypeUtilTest.java b/jetty-core/jetty-util/src/test/java/org/eclipse/jetty/util/TypeUtilTest.java index f86c1346d93..f690a01b51a 100644 --- a/jetty-core/jetty-util/src/test/java/org/eclipse/jetty/util/TypeUtilTest.java +++ b/jetty-core/jetty-util/src/test/java/org/eclipse/jetty/util/TypeUtilTest.java @@ -19,7 +19,7 @@ import java.util.stream.Stream; import org.eclipse.jetty.util.resource.Resource; import org.eclipse.jetty.util.resource.ResourceFactory; -import org.eclipse.jetty.util.test10.TestClass; +import org.eclipse.jetty.util.test10.ExampleClass; import org.hamcrest.Matchers; import org.junit.jupiter.api.Test; import org.junit.jupiter.params.ParameterizedTest; @@ -243,7 +243,7 @@ public class TypeUtilTest { return Stream.of( Arguments.of(TypeUtilTest.class, "oeju.TypeUtilTest"), - Arguments.of(TestClass.class, "oejut10.TestClass") + Arguments.of(ExampleClass.class, "oejut10.TestClass") ); } diff --git a/jetty-core/jetty-util/src/test/java/org/eclipse/jetty/util/test10/TestClass.java b/jetty-core/jetty-util/src/test/java/org/eclipse/jetty/util/test10/ExampleClass.java similarity index 91% rename from jetty-core/jetty-util/src/test/java/org/eclipse/jetty/util/test10/TestClass.java rename to jetty-core/jetty-util/src/test/java/org/eclipse/jetty/util/test10/ExampleClass.java index 2991d39d630..8bc456e8c1b 100644 --- a/jetty-core/jetty-util/src/test/java/org/eclipse/jetty/util/test10/TestClass.java +++ b/jetty-core/jetty-util/src/test/java/org/eclipse/jetty/util/test10/ExampleClass.java @@ -13,6 +13,7 @@ package org.eclipse.jetty.util.test10; -public class TestClass +public class ExampleClass { + // Class used by TypeUtilTest }