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

slachiewicz pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-shared-utils.git


The following commit(s) were added to refs/heads/master by this push:
     new dc65adc  Drop JUnit 3 method naming from tests
dc65adc is described below

commit dc65adc3ece1b4c36ec68327eda6aca5f20d459e
Author: Sylwester Lachiewicz <[email protected]>
AuthorDate: Thu Nov 19 12:02:19 2026 +0100

    Drop JUnit 3 method naming from tests
---
 .../org/apache/maven/shared/utils/CaseTest.java    |   6 +-
 .../java/org/apache/maven/shared/utils/OsTest.java |  20 +-
 .../apache/maven/shared/utils/PathToolTest.java    |  16 +-
 .../apache/maven/shared/utils/StringUtilsTest.java | 334 ++++++++++-----------
 .../maven/shared/utils/XmlStreamReaderTest.java    |  28 +-
 .../shared/utils/cli/CommandLineUtilsTest.java     |  10 +-
 .../shared/utils/cli/shell/BourneShellTest.java    |  18 +-
 .../ReflectionValueExtractorTest.java              |  36 +--
 .../shared/utils/io/DirectoryScannerTest.java      |  14 +-
 .../maven/shared/utils/io/SelectorUtilsTest.java   |  10 +-
 .../maven/shared/utils/xml/XmlWriterUtilTest.java  |  48 +--
 .../maven/shared/utils/xml/Xpp3DomBuilderTest.java |   6 +-
 .../maven/shared/utils/xml/pull/Xpp3DomTest.java   |   4 +-
 13 files changed, 275 insertions(+), 275 deletions(-)

diff --git a/src/test/java/org/apache/maven/shared/utils/CaseTest.java 
b/src/test/java/org/apache/maven/shared/utils/CaseTest.java
index b3797d6..d3454cb 100644
--- a/src/test/java/org/apache/maven/shared/utils/CaseTest.java
+++ b/src/test/java/org/apache/maven/shared/utils/CaseTest.java
@@ -35,7 +35,7 @@ import static org.junit.jupiter.api.Assertions.assertTrue;
  * @author Hervé Boutemy
  * @see <a 
href="http://sim.ivi.co/2011/07/trap-of-case-insensitive-string.html";>Simple 
Smiles - Xuelei Fan's Blog</a>
  */
-public class CaseTest {
+class CaseTest {
     private static final Locale LOCALE_TURKISH = new Locale("tr");
 
     /** common ASCII 'i' */
@@ -68,7 +68,7 @@ public class CaseTest {
      * @see <a 
href="http://mattryall.net/blog/2009/02/the-infamous-turkish-locale-bug";>The 
infamous Turkish locale bug</a>
      */
     @Test
-    public void testTurkishI() {
+    void turkishI() {
         // check common i and I
         assertEquals('i', DOTTED_i, "common lowercase i should have a dot");
         assertEquals('I', DOTLESS_I, "common uppercase I should not have a 
dot");
@@ -116,7 +116,7 @@ public class CaseTest {
      * exception on these characters.
      */
     @Test
-    public void testAsciiAvailableLocales() {
+    void asciiAvailableLocales() {
         final String lower = "abcdefghijklmnopqrstuvwxyz";
         final String upper = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
 
diff --git a/src/test/java/org/apache/maven/shared/utils/OsTest.java 
b/src/test/java/org/apache/maven/shared/utils/OsTest.java
index d966f51..43da7ba 100644
--- a/src/test/java/org/apache/maven/shared/utils/OsTest.java
+++ b/src/test/java/org/apache/maven/shared/utils/OsTest.java
@@ -34,7 +34,7 @@ import static org.junit.jupiter.api.Assertions.assertTrue;
  * @author <a href="mailto:[email protected]";>Mark Struberg</a>
  */
 @SuppressWarnings("deprecation")
-public class OsTest {
+class OsTest {
     private String origOsName;
     private String origOsArch;
     private String origOsVersion;
@@ -60,7 +60,7 @@ public class OsTest {
     }
 
     @Test
-    public void testConstructor() {
+    void constructor() {
         Os os = new Os();
         os.eval();
 
@@ -79,7 +79,7 @@ public class OsTest {
     }
 
     @Test
-    public void testFamilyNames() {
+    void familyNames() {
         assertEquals(Os.FAMILY_DOS, "dos");
         assertEquals(Os.FAMILY_MAC, "mac");
         assertEquals(Os.FAMILY_NETWARE, "netware");
@@ -94,7 +94,7 @@ public class OsTest {
     }
 
     @Test
-    public void testGetValidFamilies() {
+    void getValidFamilies() {
         Set<String> osFamilies = Os.getValidFamilies();
 
         assertTrue(osFamilies.size() >= 11, "OsFamilies Set size");
@@ -113,40 +113,40 @@ public class OsTest {
     }
 
     @Test
-    public void testOsFamilyIsValidFamily() {
+    void osFamilyIsValidFamily() {
         assertTrue(Os.isValidFamily(Os.OS_FAMILY));
     }
 
     @Test
-    public void testIsArch() {
+    void isArch() {
         assertTrue(Os.isArch("i386"), "Arch is i386");
 
         assertFalse(Os.isArch("x86_64"), "Os is not Mac");
     }
 
     @Test
-    public void testIsFamily() {
+    void isFamily() {
         assertTrue(Os.isFamily(Os.FAMILY_OS2), "Family is os/2");
 
         assertFalse(Os.isFamily(Os.FAMILY_MAC), "Family is not mac");
     }
 
     @Test
-    public void testIsName() {
+    void isName() {
         assertTrue(Os.isName("os/2"), "Name is os/2");
 
         assertFalse(Os.isName("Mac OS X"), "Name is not Mac OS X");
     }
 
     @Test
-    public void testIsValidFamily() {
+    void isValidFamily() {
         assertTrue(Os.isValidFamily(Os.FAMILY_OS2), "os/2 isValidFamily");
 
         assertFalse(Os.isValidFamily("iPhone"), "iPone != isValidFamily");
     }
 
     @Test
-    public void testIsVersion() {
+    void isVersion() {
         assertTrue(Os.isVersion("2.1.32"), "isVersion");
 
         assertFalse(Os.isVersion("2.1"), "isVersion");
diff --git a/src/test/java/org/apache/maven/shared/utils/PathToolTest.java 
b/src/test/java/org/apache/maven/shared/utils/PathToolTest.java
index 4ba46b6..a054e8d 100644
--- a/src/test/java/org/apache/maven/shared/utils/PathToolTest.java
+++ b/src/test/java/org/apache/maven/shared/utils/PathToolTest.java
@@ -32,12 +32,12 @@ import static org.junit.jupiter.api.Assertions.assertNull;
  * @author <a href="mailto:[email protected]";>Mark Struberg</a>
  */
 @SuppressWarnings("deprecation")
-public class PathToolTest {
+class PathToolTest {
 
     @Test
-    // Keep in sync with testGetRelativeFilePathWindows()
+    // Keep in sync with getRelativeFilePathWindows()
     @DisabledOnOs(OS.WINDOWS)
-    public void testGetRelativeFilePathNonWindows() {
+    void getRelativeFilePathNonWindows() {
         assertEquals("", PathTool.getRelativeFilePath(null, null));
 
         assertEquals("", PathTool.getRelativeFilePath(null, 
"/usr/local/java/bin"));
@@ -62,9 +62,9 @@ public class PathToolTest {
     }
 
     @Test
-    // Keep in sync with testGetRelativeFilePathNonWindows()
+    // Keep in sync with getRelativeFilePathNonWindows()
     @EnabledOnOs(OS.WINDOWS)
-    public void testGetRelativeFilePathWindows() {
+    void getRelativeFilePathWindows() {
         assertEquals("", PathTool.getRelativeFilePath(null, null));
 
         assertEquals("", PathTool.getRelativeFilePath(null, 
"c:\\usr\\local\\java\\bin"));
@@ -92,7 +92,7 @@ public class PathToolTest {
     }
 
     @Test
-    public void testGetRelativePath2Parm() {
+    void getRelativePath2Parm() {
         assertEquals("", PathTool.getRelativePath(null, null));
 
         assertEquals("", PathTool.getRelativePath(null, 
"/usr/local/java/bin"));
@@ -107,7 +107,7 @@ public class PathToolTest {
     }
 
     @Test
-    public void testGetRelativeFilePathWithDifferentWindowsDrives() {
+    void getRelativeFilePathWithDifferentWindowsDrives() {
         // Verifies that a leading backslash before a Windows drive letter 
(e.g. "\C:\\...")
         // is stripped so the drive-letter comparison logic runs.
         // Different drives have no relative path, represented as an empty 
string.
@@ -115,7 +115,7 @@ public class PathToolTest {
     }
 
     @Test
-    public void testUppercaseDrive() {
+    void uppercaseDrive() {
         assertNull(PathTool.uppercaseDrive(null));
 
         assertEquals("D:", PathTool.uppercaseDrive("d:"));
diff --git a/src/test/java/org/apache/maven/shared/utils/StringUtilsTest.java 
b/src/test/java/org/apache/maven/shared/utils/StringUtilsTest.java
index 7708cce..b092f52 100644
--- a/src/test/java/org/apache/maven/shared/utils/StringUtilsTest.java
+++ b/src/test/java/org/apache/maven/shared/utils/StringUtilsTest.java
@@ -38,37 +38,37 @@ import static org.junit.jupiter.api.Assertions.assertTrue;
  * @author <a href="mailto:[email protected]";>Mark Struberg</a>
  */
 @SuppressWarnings({"deprecation", "DataFlowIssue"})
-public class StringUtilsTest {
+class StringUtilsTest {
 
     @Test
-    public void testAbbreviateNPE() {
+    void abbreviateNPE() {
         assertThrows(NullPointerException.class, () -> 
StringUtils.abbreviate(null, 10));
     }
 
     @Test
-    public void testAbbreviateMinLength() {
+    void abbreviateMinLength() {
         assertThrows(IllegalArgumentException.class, () -> 
StringUtils.abbreviate("This is a longtext", 3));
     }
 
     @Test
-    public void testAbbreviate() {
+    void abbreviate() {
         assertEquals("This is...", StringUtils.abbreviate("This is a 
longtext", 10));
 
         assertEquals("This is a longtext", StringUtils.abbreviate("This is a 
longtext", 50));
     }
 
     @Test
-    public void testAbbreviateOffsetNPE() {
+    void abbreviateOffsetNPE() {
         assertThrows(NullPointerException.class, () -> 
StringUtils.abbreviate(null, 10, 20));
     }
 
     @Test
-    public void testAbbreviateOffsetMinLength() {
+    void abbreviateOffsetMinLength() {
         assertThrows(IllegalArgumentException.class, () -> 
StringUtils.abbreviate("This is a longtext", 10, 3));
     }
 
     @Test
-    public void testAbbreviateOffset() {
+    void abbreviateOffset() {
         assertEquals("...is a...", StringUtils.abbreviate("This is a 
longtext", 5, 10));
 
         assertEquals("This is a longtext", StringUtils.abbreviate("This is a 
longtext", 10, 20));
@@ -77,12 +77,12 @@ public class StringUtilsTest {
     }
 
     @Test
-    public void testAddAndDeHumpNPE() {
+    void addAndDeHumpNPE() {
         assertThrows(NullPointerException.class, () -> 
StringUtils.addAndDeHump(null));
     }
 
     @Test
-    public void testAddAndDeHump() {
+    void addAndDeHump() {
         assertEquals("lalala", StringUtils.addAndDeHump("lalala"));
 
         assertEquals("la-la-la", StringUtils.addAndDeHump("LaLaLa"));
@@ -91,26 +91,26 @@ public class StringUtilsTest {
     }
 
     @Test
-    public void testCapitalise() {
+    void capitalise() {
         assertNull(StringUtils.capitalise(null));
 
         assertEquals("StartBig", StringUtils.capitalise("startBig"));
     }
 
     @Test
-    public void testCapitaliseAllWords() {
+    void capitaliseAllWords() {
         assertNull(StringUtils.capitaliseAllWords(null));
 
         assertEquals("Start All Big", StringUtils.capitaliseAllWords("start 
all big"));
     }
 
     @Test
-    public void testCapitalizeFirstLetterNPE() {
+    void capitalizeFirstLetterNPE() {
         assertThrows(NullPointerException.class, () -> 
assertNull(StringUtils.capitalizeFirstLetter(null)));
     }
 
     @Test
-    public void testCapitalizeFirstLetter() {
+    void capitalizeFirstLetter() {
         assertEquals("Dings", StringUtils.capitalizeFirstLetter("Dings"));
 
         assertEquals("  dings", StringUtils.capitalizeFirstLetter("  dings"));
@@ -119,12 +119,12 @@ public class StringUtilsTest {
     }
 
     @Test
-    public void testCenterNPE() {
+    void centerNPE() {
         assertThrows(NullPointerException.class, () -> 
StringUtils.center(null, 20));
     }
 
     @Test
-    public void testCenter() {
+    void center() {
         assertEquals("      centerMe      ", StringUtils.center("centerMe", 
20));
 
         assertEquals("centerMe", StringUtils.center("centerMe", 4));
@@ -133,12 +133,12 @@ public class StringUtilsTest {
     }
 
     @Test
-    public void testCenterDelimNPE() {
+    void centerDelimNPE() {
         assertThrows(NullPointerException.class, () -> 
StringUtils.center(null, 20, "*"));
     }
 
     @Test
-    public void testCenterDelim() {
+    void centerDelim() {
         assertEquals("******centerMe******", StringUtils.center("centerMe", 
20, "*"));
 
         assertEquals("centerMe", StringUtils.center("centerMe", 4, "*"));
@@ -147,12 +147,12 @@ public class StringUtilsTest {
     }
 
     @Test
-    public void testChompNPE() {
+    void chompNPE() {
         assertThrows(NullPointerException.class, () -> 
StringUtils.chomp(null));
     }
 
     @Test
-    public void testChomp() {
+    void chomp() {
         assertEquals("dings", StringUtils.chomp("dings"));
 
         assertEquals("dings", StringUtils.chomp("dings\n"));
@@ -163,12 +163,12 @@ public class StringUtilsTest {
     }
 
     @Test
-    public void testChompDelimNPE() {
+    void chompDelimNPE() {
         assertThrows(NullPointerException.class, () -> StringUtils.chomp(null, 
"+"));
     }
 
     @Test
-    public void testChompDelim() {
+    void chompDelim() {
         assertEquals("dings", StringUtils.chomp("dings", "+"));
 
         assertEquals("dings", StringUtils.chomp("dings+", "+"));
@@ -179,12 +179,12 @@ public class StringUtilsTest {
     }
 
     @Test
-    public void testChompLastNPE() {
+    void chompLastNPE() {
         assertThrows(NullPointerException.class, () -> 
StringUtils.chompLast(null));
     }
 
     @Test
-    public void testChompLast() {
+    void chompLast() {
         assertEquals("dings", StringUtils.chompLast("dings"));
 
         assertEquals("", StringUtils.chompLast("\n"));
@@ -197,12 +197,12 @@ public class StringUtilsTest {
     }
 
     @Test
-    public void testChompLastDelimNPE() {
+    void chompLastDelimNPE() {
         assertThrows(NullPointerException.class, () -> 
StringUtils.chompLast(null, "+"));
     }
 
     @Test
-    public void testChompLastDelim() {
+    void chompLastDelim() {
         assertEquals("dings", StringUtils.chompLast("dings", "+"));
 
         assertEquals("", StringUtils.chompLast("+", "+"));
@@ -215,17 +215,17 @@ public class StringUtilsTest {
     }
 
     @Test
-    public void testChompLastSepLongerThanStr() {
+    void chompLastSepLongerThanStr() {
         assertEquals("x", StringUtils.chompLast("x", "ab"));
     }
 
     @Test
-    public void testChopNPE() {
+    void chopNPE() {
         assertThrows(NullPointerException.class, () -> StringUtils.chop(null));
     }
 
     @Test
-    public void testChop() {
+    void chop() {
         assertEquals("ding", StringUtils.chop("dings"));
 
         assertEquals("", StringUtils.chop("x"));
@@ -238,12 +238,12 @@ public class StringUtilsTest {
     }
 
     @Test
-    public void testChopNewlineNPE() {
+    void chopNewlineNPE() {
         assertThrows(NullPointerException.class, () -> 
StringUtils.chopNewline(null));
     }
 
     @Test
-    public void testChopNewline() {
+    void chopNewline() {
         assertEquals("dings", StringUtils.chopNewline("dings"));
 
         assertEquals("x", StringUtils.chopNewline("x"));
@@ -256,12 +256,12 @@ public class StringUtilsTest {
     }
 
     @Test
-    public void testChopNewlineEmptyString() {
+    void chopNewlineEmptyString() {
         assertEquals("", StringUtils.chopNewline(""));
     }
 
     @Test
-    public void testClean() {
+    void clean() {
         assertEquals("", StringUtils.clean(null));
 
         assertEquals("", StringUtils.clean("   "));
@@ -272,12 +272,12 @@ public class StringUtilsTest {
     }
 
     @Test
-    public void testConcatenateNPE() {
+    void concatenateNPE() {
         assertThrows(NullPointerException.class, () -> 
StringUtils.concatenate((Object) null));
     }
 
     @Test
-    public void testConcatenate() {
+    void concatenate() {
         assertEquals("", StringUtils.concatenate());
 
         assertEquals("x", StringUtils.concatenate("x"));
@@ -287,7 +287,7 @@ public class StringUtilsTest {
 
     @SuppressWarnings("ConstantValue")
     @Test
-    public void testContainsString() {
+    void containsString() {
         assertFalse(StringUtils.contains(null, null));
 
         assertFalse(StringUtils.contains(null, "string"));
@@ -302,7 +302,7 @@ public class StringUtilsTest {
     }
 
     @Test
-    public void testContainsChar() {
+    void containsChar() {
         assertFalse(StringUtils.contains(null, 'c'));
 
         assertFalse(StringUtils.contains("string", "c"));
@@ -315,17 +315,17 @@ public class StringUtilsTest {
     }
 
     @Test
-    public void testCountMatchesNPE() {
+    void countMatchesNPE() {
         assertThrows(NullPointerException.class, () -> 
StringUtils.countMatches(null, null));
     }
 
     @Test
-    public void testCountMatchesNPE2() {
+    void countMatchesNPE2() {
         assertThrows(NullPointerException.class, () -> 
StringUtils.countMatches("this is it", null));
     }
 
     @Test
-    public void testCountMatches() {
+    void countMatches() {
         assertEquals(0, StringUtils.countMatches(null, "is"));
 
         assertEquals(2, StringUtils.countMatches("this is it", "is"));
@@ -334,26 +334,26 @@ public class StringUtilsTest {
     }
 
     @Test
-    public void testDefaultString() {
+    void defaultString() {
         assertEquals("", StringUtils.defaultString(null));
 
         assertEquals("dings", StringUtils.defaultString("dings"));
     }
 
     @Test
-    public void testDefaultStringDefaultValue() {
+    void defaultStringDefaultValue() {
         assertEquals("defaultValue", StringUtils.defaultString(null, 
"defaultValue"));
 
         assertEquals("dings", StringUtils.defaultString("dings", 
"defaultValue"));
     }
 
     @Test
-    public void testDeleteWhitespaceNPE() {
+    void deleteWhitespaceNPE() {
         assertThrows(NullPointerException.class, () -> 
StringUtils.deleteWhitespace(null));
     }
 
     @Test
-    public void testDeleteWhitespace() {
+    void deleteWhitespace() {
         assertEquals("", StringUtils.deleteWhitespace(" \t  \n"));
 
         assertEquals("\b", StringUtils.deleteWhitespace(" \t  \b \n"));
@@ -364,22 +364,22 @@ public class StringUtilsTest {
     }
 
     @Test
-    public void testDifferenceNPE() {
+    void differenceNPE() {
         assertThrows(NullPointerException.class, () -> 
StringUtils.difference(null, null));
     }
 
     @Test
-    public void testDifferenceNPE2() {
+    void differenceNPE2() {
         assertThrows(NullPointerException.class, () -> 
StringUtils.difference(null, "another"));
     }
 
     @Test
-    public void testDifferenceNPE3() {
+    void differenceNPE3() {
         assertThrows(NullPointerException.class, () -> 
StringUtils.difference("this", null));
     }
 
     @Test
-    public void testDifference() {
+    void difference() {
         assertEquals("another", StringUtils.difference("this", "another"));
 
         assertEquals("a robot", StringUtils.difference("I am human", "I am a 
robot"));
@@ -388,22 +388,22 @@ public class StringUtilsTest {
     }
 
     @Test
-    public void testDifferenceAtNPE() {
+    void differenceAtNPE() {
         assertThrows(NullPointerException.class, () -> 
StringUtils.differenceAt(null, null));
     }
 
     @Test
-    public void testDifferenceAtNPE2() {
+    void differenceAtNPE2() {
         assertThrows(NullPointerException.class, () -> 
StringUtils.differenceAt("test", null));
     }
 
     @Test
-    public void testDifferenceAtNPE3() {
+    void differenceAtNPE3() {
         assertThrows(NullPointerException.class, () -> 
StringUtils.differenceAt(null, "test"));
     }
 
     @Test
-    public void testDifferenceAt() {
+    void differenceAt() {
         assertEquals(0, StringUtils.differenceAt("this", "another"));
 
         assertEquals(5, StringUtils.differenceAt("I am human", "I am a 
robot"));
@@ -412,7 +412,7 @@ public class StringUtilsTest {
     }
 
     @Test
-    public void testEndsWithIgnoreCase() {
+    void endsWithIgnoreCase() {
         assertFalse(StringUtils.endsWithIgnoreCase(null, null));
 
         assertFalse(StringUtils.endsWithIgnoreCase(null, "string"));
@@ -428,7 +428,7 @@ public class StringUtilsTest {
 
     @SuppressWarnings("ConstantValue")
     @Test
-    public void testEquals() {
+    void equals() {
         assertTrue(StringUtils.equals(null, null));
 
         assertFalse(StringUtils.equals("x", null));
@@ -442,7 +442,7 @@ public class StringUtilsTest {
 
     @SuppressWarnings("ConstantValue")
     @Test
-    public void testEqualsIgnoreCase() {
+    void equalsIgnoreCase() {
         assertTrue(StringUtils.equalsIgnoreCase(null, null));
 
         assertFalse(StringUtils.equalsIgnoreCase("x", null));
@@ -457,12 +457,12 @@ public class StringUtilsTest {
     }
 
     @Test
-    public void testEscapeNPE() {
+    void escapeNPE() {
         assertThrows(NullPointerException.class, () -> 
StringUtils.escape(null));
     }
 
     @Test
-    public void testEscape() {
+    void escape() {
         assertEquals("dings", StringUtils.escape("dings"));
 
         assertEquals("dings\\tbums", StringUtils.escape("dings\tbums"));
@@ -471,7 +471,7 @@ public class StringUtilsTest {
     }
 
     @Test
-    public void testEscape2() {
+    void escape2() {
         assertNull(StringUtils.escape(null, null, '#'));
 
         assertEquals("dings", StringUtils.escape("dings", new char[] {'\t', 
'\b'}, '+'));
@@ -483,22 +483,22 @@ public class StringUtilsTest {
     }
 
     @Test
-    public void testGetChompNPE1() {
+    void getChompNPE1() {
         assertThrows(NullPointerException.class, () -> 
StringUtils.getChomp(null, null));
     }
 
     @Test
-    public void testGetChompNPE2() {
+    void getChompNPE2() {
         assertThrows(NullPointerException.class, () -> 
StringUtils.getChomp("dings", null));
     }
 
     @Test
-    public void testGetChompNPE3() {
+    void getChompNPE3() {
         assertThrows(NullPointerException.class, () -> 
StringUtils.getChomp(null, "dings"));
     }
 
     @Test
-    public void testGetChomp() {
+    void getChomp() {
         assertEquals("-bums", StringUtils.getChomp("dings-bums", "-"));
 
         assertEquals("-", StringUtils.getChomp("dings-", "-"));
@@ -507,12 +507,12 @@ public class StringUtilsTest {
     }
 
     @Test
-    public void testGetNestedStringNPE() {
+    void getNestedStringNPE() {
         assertThrows(NullPointerException.class, () -> 
StringUtils.getNestedString("  +dings+ ", null));
     }
 
     @Test
-    public void testGetNestedString() {
+    void getNestedString() {
         assertNull(StringUtils.getNestedString(null, null));
 
         assertEquals("dings", StringUtils.getNestedString("  +dings+ ", "+"));
@@ -521,17 +521,17 @@ public class StringUtilsTest {
     }
 
     @Test
-    public void testGetNestedString2NPE1() {
+    void getNestedString2NPE1() {
         assertThrows(NullPointerException.class, () -> 
StringUtils.getNestedString("  +dings+ ", null, null));
     }
 
     @Test
-    public void testGetNestedString2NPE2() {
+    void getNestedString2NPE2() {
         assertThrows(NullPointerException.class, () -> 
StringUtils.getNestedString("  +dings+ ", null, "neither"));
     }
 
     @Test
-    public void testGetNestedString2() {
+    void getNestedString2() {
         assertNull(StringUtils.getNestedString(null, null, null));
 
         assertNull(StringUtils.getNestedString("  +dings+ ", "not", null));
@@ -542,17 +542,17 @@ public class StringUtilsTest {
     }
 
     @Test
-    public void testGetPrechompNPE1() {
+    void getPrechompNPE1() {
         assertThrows(NullPointerException.class, () -> 
StringUtils.getPrechomp(null, null));
     }
 
     @Test
-    public void testGetPrechompNPE2() {
+    void getPrechompNPE2() {
         assertThrows(NullPointerException.class, () -> 
StringUtils.getPrechomp(null, "bums"));
     }
 
     @Test
-    public void testGetPrechomp() {
+    void getPrechomp() {
         assertEquals("dings bums", StringUtils.getPrechomp("dings bums dongs", 
"bums"));
 
         assertEquals("", StringUtils.getPrechomp("dings bums dongs", "non"));
@@ -560,7 +560,7 @@ public class StringUtilsTest {
 
     @SuppressWarnings("RedundantArrayCreation")
     @Test
-    public void testIndexOfAny() {
+    void indexOfAny() {
         assertEquals(-1, StringUtils.indexOfAny(null, (String[]) null));
 
         assertEquals(-1, StringUtils.indexOfAny("dings", (String[]) null));
@@ -571,17 +571,17 @@ public class StringUtilsTest {
     }
 
     @Test
-    public void testInterpolateNPE() {
+    void interpolateNPE() {
         assertThrows(NullPointerException.class, () -> 
StringUtils.interpolate(null, null));
     }
 
     @Test
-    public void testInterpolateNPE2() {
+    void interpolateNPE2() {
         assertThrows(NullPointerException.class, () -> 
StringUtils.interpolate("This ${text} will get replaced", null));
     }
 
     @Test
-    public void testInterpolate() {
+    void interpolate() {
         Map<String, String> variables = new HashMap<>();
         assertEquals(
                 "This ${text} will get replaced", 
StringUtils.interpolate("This ${text} will get replaced", variables));
@@ -594,7 +594,7 @@ public class StringUtilsTest {
     }
 
     @Test
-    public void testIsAlpha() {
+    void isAlpha() {
         assertFalse(StringUtils.isAlpha(null));
 
         assertFalse(StringUtils.isAlpha("2"));
@@ -607,7 +607,7 @@ public class StringUtilsTest {
     }
 
     @Test
-    public void testIsAlphaSpace() {
+    void isAlphaSpace() {
         assertFalse(StringUtils.isAlphaSpace(null));
 
         assertFalse(StringUtils.isAlphaSpace("2"));
@@ -622,7 +622,7 @@ public class StringUtilsTest {
     }
 
     @Test
-    public void testIsAlphanumeric() {
+    void isAlphanumeric() {
         assertFalse(StringUtils.isAlphanumeric(null));
 
         assertTrue(StringUtils.isAlphanumeric("2"));
@@ -643,7 +643,7 @@ public class StringUtilsTest {
     }
 
     @Test
-    public void testIsAlphanumericSpace() {
+    void isAlphanumericSpace() {
         assertFalse(StringUtils.isAlphanumericSpace(null));
 
         assertTrue(StringUtils.isAlphanumericSpace("2"));
@@ -664,7 +664,7 @@ public class StringUtilsTest {
     }
 
     @Test
-    public void testIsBlank() {
+    void isBlank() {
         assertTrue(StringUtils.isBlank(null));
 
         assertFalse(StringUtils.isBlank("xx"));
@@ -679,7 +679,7 @@ public class StringUtilsTest {
     }
 
     @Test
-    public void testEmpty() {
+    void empty() {
         assertTrue(StringUtils.isEmpty(null));
 
         assertFalse(StringUtils.isEmpty("xx"));
@@ -694,7 +694,7 @@ public class StringUtilsTest {
     }
 
     @Test
-    public void testNotBlank() {
+    void notBlank() {
         assertFalse(StringUtils.isNotBlank(null));
 
         assertTrue(StringUtils.isNotBlank("xx"));
@@ -710,7 +710,7 @@ public class StringUtilsTest {
 
     @SuppressWarnings("ConstantValue")
     @Test
-    public void testNotEmpty() {
+    void notEmpty() {
         assertFalse(StringUtils.isNotEmpty(null));
 
         assertTrue(StringUtils.isNotEmpty("xx"));
@@ -727,7 +727,7 @@ public class StringUtilsTest {
     }
 
     @Test
-    public void testIsNumeric() {
+    void isNumeric() {
         assertFalse(StringUtils.isNumeric(null));
 
         assertTrue(StringUtils.isNumeric("2"));
@@ -748,7 +748,7 @@ public class StringUtilsTest {
     }
 
     @Test
-    public void testIsWhitespace() {
+    void isWhitespace() {
         assertFalse(StringUtils.isWhitespace(null));
 
         assertFalse(StringUtils.isWhitespace("xx"));
@@ -765,12 +765,12 @@ public class StringUtilsTest {
     }
 
     @Test
-    public void testJoinArrayNPE() {
+    void joinArrayNPE() {
         assertThrows(NullPointerException.class, () -> 
StringUtils.join((Object[]) null, null));
     }
 
     @Test
-    public void testJoinArray() {
+    void joinArray() {
         assertEquals("", StringUtils.join(new Object[0], null));
 
         assertEquals("abc", StringUtils.join(new Object[] {"a", "b", "c"}, 
null));
@@ -779,12 +779,12 @@ public class StringUtilsTest {
     }
 
     @Test
-    public void testJoinIteratorNPE() {
+    void joinIteratorNPE() {
         assertThrows(NullPointerException.class, () -> 
StringUtils.join((Iterator<?>) null, null));
     }
 
     @Test
-    public void testJoinIterator() {
+    void joinIterator() {
         ArrayList<String> list = new ArrayList<>();
 
         //noinspection RedundantOperationOnEmptyContainer
@@ -800,7 +800,7 @@ public class StringUtilsTest {
     }
 
     @Test
-    public void testLastIndexOfAny() {
+    void lastIndexOfAny() {
         assertEquals(-1, StringUtils.lastIndexOfAny(null, (String[]) null));
 
         assertEquals(-1, StringUtils.lastIndexOfAny("dings", (String[]) null));
@@ -811,12 +811,12 @@ public class StringUtilsTest {
     }
 
     @Test
-    public void testLeftIAE() {
+    void leftIAE() {
         assertThrows(IllegalArgumentException.class, () -> 
StringUtils.left(null, -1));
     }
 
     @Test
-    public void testLeft() {
+    void left() {
         assertNull(StringUtils.left(null, 4));
 
         assertEquals("ding", StringUtils.left("dingsbums", 4));
@@ -827,12 +827,12 @@ public class StringUtilsTest {
     }
 
     @Test
-    public void testLeftPad1NPE() {
+    void leftPad1NPE() {
         assertThrows(NullPointerException.class, () -> 
StringUtils.leftPad(null, 0));
     }
 
     @Test
-    public void testLeftPad1() {
+    void leftPad1() {
         assertEquals("dings", StringUtils.leftPad("dings", 0));
 
         assertEquals("dings", StringUtils.leftPad("dings", 2));
@@ -841,22 +841,22 @@ public class StringUtilsTest {
     }
 
     @Test
-    public void testLeftPad2NPE1() {
+    void leftPad2NPE1() {
         assertThrows(NullPointerException.class, () -> 
StringUtils.leftPad(null, 0, null));
     }
 
     @Test
-    public void testLeftPad2NPE2() {
+    void leftPad2NPE2() {
         assertThrows(NullPointerException.class, () -> 
StringUtils.leftPad("dings", 0, null));
     }
 
     @Test
-    public void testLeftPad2NPE3() {
+    void leftPad2NPE3() {
         assertThrows(NullPointerException.class, () -> 
StringUtils.leftPad(null, 0, "*"));
     }
 
     @Test
-    public void testLeftPad2() {
+    void leftPad2() {
         assertEquals("dings", StringUtils.leftPad("dings", 0, "*"));
 
         assertEquals("dings", StringUtils.leftPad("dings", 2, "*"));
@@ -865,13 +865,13 @@ public class StringUtilsTest {
     }
 
     @Test
-    public void testLeftPadEmptyDelim() {
+    void leftPadEmptyDelim() {
         assertEquals("dings", StringUtils.leftPad("dings", 10, ""));
     }
 
     @SuppressWarnings("ConstantValue")
     @Test
-    public void testLowerCase() {
+    void lowerCase() {
         assertNull(StringUtils.lowerCase(null));
 
         assertEquals("dingsbums", StringUtils.lowerCase("dinGSbuMS"));
@@ -880,27 +880,27 @@ public class StringUtilsTest {
     }
 
     @Test
-    public void testLowerCaseFirstLetterNPE() {
+    void lowerCaseFirstLetterNPE() {
         assertThrows(NullPointerException.class, () -> 
StringUtils.lowercaseFirstLetter(null));
     }
 
     @Test
-    public void testLowerCaseFirstLetter() {
+    void lowerCaseFirstLetter() {
         assertEquals("dings Bums", StringUtils.lowercaseFirstLetter("Dings 
Bums"));
     }
 
     @Test
-    public void testMidNegativeLen() {
+    void midNegativeLen() {
         assertThrows(IllegalArgumentException.class, () -> 
StringUtils.mid(null, 0, -2));
     }
 
     @Test
-    public void testMidWrongPos() {
+    void midWrongPos() {
         assertThrows(IndexOutOfBoundsException.class, () -> 
StringUtils.mid(null, -2, 3));
     }
 
     @Test
-    public void testMid() {
+    void mid() {
         assertNull(StringUtils.mid(null, 0, 0));
 
         assertEquals("", StringUtils.mid("dings bums", 0, 0));
@@ -909,51 +909,51 @@ public class StringUtilsTest {
     }
 
     @Test
-    public void testOverlayStringNPE1() {
+    void overlayStringNPE1() {
         assertThrows(NullPointerException.class, () -> 
StringUtils.overlayString(null, null, 0, 0));
     }
 
     @Test
-    public void testOverlayStringNPE2() {
+    void overlayStringNPE2() {
         assertThrows(NullPointerException.class, () -> 
StringUtils.overlayString("dings", null, 0, 0));
     }
 
     @Test
-    public void testOverlayStringNPE3() {
+    void overlayStringNPE3() {
         assertThrows(NullPointerException.class, () -> 
StringUtils.overlayString(null, "bums", 0, 0));
     }
 
     @Test
-    public void testOverlayString() {
+    void overlayString() {
         assertEquals("bumsdings", StringUtils.overlayString("dings", "bums", 
0, 0));
 
         assertEquals("dibumss", StringUtils.overlayString("dings", "bums", 2, 
4));
     }
 
     @Test
-    public void testPrechompNPE1() {
+    void prechompNPE1() {
         assertThrows(NullPointerException.class, () -> 
StringUtils.prechomp(null, null));
     }
 
     @Test
-    public void testPrechompNPE2() {
+    void prechompNPE2() {
         assertThrows(NullPointerException.class, () -> 
StringUtils.prechomp("dings", null));
     }
 
     @Test
-    public void testPrechompNPE3() {
+    void prechompNPE3() {
         assertThrows(NullPointerException.class, () -> 
StringUtils.prechomp(null, "bums"));
     }
 
     @Test
-    public void testPrechomp() {
+    void prechomp() {
         assertEquals("bums", StringUtils.prechomp("dings bums", " "));
 
         assertEquals("dings bums", StringUtils.prechomp("dings bums", "nix"));
     }
 
     @Test
-    public void testQuoteAndEscape1() {
+    void quoteAndEscape1() {
         assertNull(StringUtils.quoteAndEscape(null, '+'));
 
         assertEquals("", StringUtils.quoteAndEscape("", '+'));
@@ -968,7 +968,7 @@ public class StringUtilsTest {
     }
 
     @Test
-    public void testQuoteAndEscape2() {
+    void quoteAndEscape2() {
         assertNull(StringUtils.quoteAndEscape(null, '+', new char[] {'"'}));
 
         assertEquals("", StringUtils.quoteAndEscape("", '+', new char[] 
{'"'}));
@@ -985,7 +985,7 @@ public class StringUtilsTest {
     }
 
     @Test
-    public void testQuoteAndEscape3() {
+    void quoteAndEscape3() {
         assertNull(StringUtils.quoteAndEscape(null, '+', new char[] {'"'}, 
'\\', false));
 
         assertEquals("", StringUtils.quoteAndEscape("", '+', new char[] {'"'}, 
'\\', false));
@@ -1017,7 +1017,7 @@ public class StringUtilsTest {
     }
 
     @Test
-    public void testQuoteAndEscape4() {
+    void quoteAndEscape4() {
         assertNull(StringUtils.quoteAndEscape(null, '+', new char[] {'"'}, new 
char[] {'"'}, '\\', false));
 
         assertEquals("", StringUtils.quoteAndEscape("", '+', new char[] {'"'}, 
new char[] {'"'}, '\\', false));
@@ -1060,22 +1060,22 @@ public class StringUtilsTest {
     }
 
     @Test
-    public void testRemoveAndHumpNPE1() {
+    void removeAndHumpNPE1() {
         assertThrows(NullPointerException.class, () -> 
StringUtils.removeAndHump(null, null));
     }
 
     @Test
-    public void testRemoveAndHumpNPE2() {
+    void removeAndHumpNPE2() {
         assertThrows(NullPointerException.class, () -> 
StringUtils.removeAndHump("dings", null));
     }
 
     @Test
-    public void testRemoveAndHumpNPE3() {
+    void removeAndHumpNPE3() {
         assertThrows(NullPointerException.class, () -> 
StringUtils.removeAndHump(null, "bums"));
     }
 
     @Test
-    public void testRemoveAndHump() {
+    void removeAndHump() {
         assertEquals("Ding", StringUtils.removeAndHump("dings", "bums"));
 
         assertEquals("ThisIsIt", StringUtils.removeAndHump("this-is-it", "-"));
@@ -1084,12 +1084,12 @@ public class StringUtilsTest {
     }
 
     @Test
-    public void testRemoveDuplicateWhitespaceNPE() {
+    void removeDuplicateWhitespaceNPE() {
         assertThrows(NullPointerException.class, () -> 
StringUtils.removeDuplicateWhitespace(null));
     }
 
     @Test
-    public void testRemoveDuplicateWhitespace() {
+    void removeDuplicateWhitespace() {
         assertEquals("dings", StringUtils.removeDuplicateWhitespace("dings"));
 
         assertEquals("dings bums", 
StringUtils.removeDuplicateWhitespace("dings bums"));
@@ -1100,17 +1100,17 @@ public class StringUtilsTest {
     }
 
     @Test
-    public void testRepeatNPE() {
+    void repeatNPE() {
         assertThrows(NullPointerException.class, () -> 
StringUtils.repeat(null, 0));
     }
 
     @Test
-    public void testRepeatNegativeAmount() {
+    void repeatNegativeAmount() {
         assertThrows(NegativeArraySizeException.class, () -> 
StringUtils.repeat("dings", -1));
     }
 
     @Test
-    public void testRepeat() {
+    void repeat() {
         assertEquals("", StringUtils.repeat("dings", 0));
 
         assertEquals("dings", StringUtils.repeat("dings", 1));
@@ -1119,7 +1119,7 @@ public class StringUtilsTest {
     }
 
     @Test
-    public void testReplaceChar() {
+    void replaceChar() {
         assertNull(StringUtils.replace(null, 'i', 'o'));
 
         assertEquals("dongs", StringUtils.replace("dings", 'i', 'o'));
@@ -1130,7 +1130,7 @@ public class StringUtilsTest {
     }
 
     @Test
-    public void testReplace2CharMax() {
+    void replace2CharMax() {
         assertNull(StringUtils.replace(null, 'i', 'o', 0));
 
         assertEquals("dongsobumso", StringUtils.replace("dingsibumsi", 'i', 
'o', 3));
@@ -1145,7 +1145,7 @@ public class StringUtilsTest {
     }
 
     @Test
-    public void testReplaceString() {
+    void replaceString() {
         assertNull(StringUtils.replace(null, "in", "ox"));
 
         assertEquals("doxgs", StringUtils.replace("dings", "in", "ox"));
@@ -1156,7 +1156,7 @@ public class StringUtilsTest {
     }
 
     @Test
-    public void testReplace2StringMax() {
+    void replace2StringMax() {
         assertNull(StringUtils.replace(null, "in", "ox", 0));
 
         assertEquals("dingxobumxo", StringUtils.replace("dingsibumsi", "si", 
"xo", 3));
@@ -1173,7 +1173,7 @@ public class StringUtilsTest {
     }
 
     @Test
-    public void testReplaceOnceChar() {
+    void replaceOnceChar() {
         assertNull(StringUtils.replaceOnce(null, 'i', 'o'));
 
         assertEquals("dongsibumsi", StringUtils.replaceOnce("dingsibumsi", 
'i', 'o'));
@@ -1182,7 +1182,7 @@ public class StringUtilsTest {
     }
 
     @Test
-    public void testReplaceOnceString() {
+    void replaceOnceString() {
         assertNull(StringUtils.replaceOnce(null, "in", "ox"));
 
         assertEquals("dingxobumsi", StringUtils.replaceOnce("dingsibumsi", 
"si", "xo"));
@@ -1191,7 +1191,7 @@ public class StringUtilsTest {
     }
 
     @Test
-    public void testReverse() {
+    void reverse() {
         assertNull(StringUtils.reverse(null));
 
         assertEquals("", StringUtils.reverse(""));
@@ -1202,17 +1202,17 @@ public class StringUtilsTest {
     }
 
     @Test
-    public void testReverseDelimitedStringNPE1() {
+    void reverseDelimitedStringNPE1() {
         assertThrows(NullPointerException.class, () -> 
StringUtils.reverseDelimitedString(null, null));
     }
 
     @Test
-    public void testReverseDelimitedStringNPE2() {
+    void reverseDelimitedStringNPE2() {
         assertThrows(NullPointerException.class, () -> 
StringUtils.reverseDelimitedString(null, " "));
     }
 
     @Test
-    public void testReverseDelimitedString() {
+    void reverseDelimitedString() {
         assertEquals("dings", StringUtils.reverseDelimitedString("dings", 
null));
 
         assertEquals("", StringUtils.reverseDelimitedString("", " "));
@@ -1225,17 +1225,17 @@ public class StringUtilsTest {
     }
 
     @Test
-    public void testRightIAE1() {
+    void rightIAE1() {
         assertThrows(IllegalArgumentException.class, () -> 
StringUtils.right(null, -1));
     }
 
     @Test
-    public void testRightIAE2() {
+    void rightIAE2() {
         assertThrows(IllegalArgumentException.class, () -> 
StringUtils.right("dings", -1));
     }
 
     @Test
-    public void testRight() {
+    void right() {
         assertNull(StringUtils.right(null, 0));
 
         assertEquals("", StringUtils.right("dings", 0));
@@ -1246,12 +1246,12 @@ public class StringUtilsTest {
     }
 
     @Test
-    public void testRightPad1NPE() {
+    void rightPad1NPE() {
         assertThrows(NullPointerException.class, () -> 
StringUtils.rightPad(null, 0));
     }
 
     @Test
-    public void testRightPad1() {
+    void rightPad1() {
         assertEquals("dings", StringUtils.rightPad("dings", 0));
 
         assertEquals("dings", StringUtils.rightPad("dings", 3));
@@ -1260,22 +1260,22 @@ public class StringUtilsTest {
     }
 
     @Test
-    public void testRightPad2NPE1() {
+    void rightPad2NPE1() {
         assertThrows(NullPointerException.class, () -> 
StringUtils.rightPad(null, 0, null));
     }
 
     @Test
-    public void testRightPad2NPE2() {
+    void rightPad2NPE2() {
         assertThrows(NullPointerException.class, () -> 
StringUtils.rightPad("dings", 0, null));
     }
 
     @Test
-    public void testRightPad2NPE23() {
+    void rightPad2NPE23() {
         assertThrows(NullPointerException.class, () -> 
StringUtils.rightPad(null, 0, "+"));
     }
 
     @Test
-    public void testRightPad2() {
+    void rightPad2() {
         assertEquals("dings", StringUtils.rightPad("dings", 0, "+"));
 
         assertEquals("dings", StringUtils.rightPad("dings", 3, "+"));
@@ -1284,34 +1284,34 @@ public class StringUtilsTest {
     }
 
     @Test
-    public void testRightPadEmptyDelim() {
+    void rightPadEmptyDelim() {
         assertEquals("dings", StringUtils.rightPad("dings", 10, ""));
     }
 
     @Test
-    public void testSplit1NPE() {
+    void split1NPE() {
         assertThrows(NullPointerException.class, () -> 
StringUtils.split(null));
     }
 
     @Test
-    public void testSplit1() {
+    void split1() {
         assertArrayEquals(new String[] {"dings"}, StringUtils.split("dings"));
 
         assertArrayEquals(new String[] {"dings", "bums"}, 
StringUtils.split("dings bums"));
     }
 
     @Test
-    public void testSplit2NPE1() {
+    void split2NPE1() {
         assertThrows(NullPointerException.class, () -> StringUtils.split(null, 
null));
     }
 
     @Test
-    public void testSplit2NPE2() {
+    void split2NPE2() {
         assertThrows(NullPointerException.class, () -> StringUtils.split(null, 
" "));
     }
 
     @Test
-    public void testSplit2() {
+    void split2() {
         assertArrayEquals(new String[] {"dings"}, StringUtils.split("dings", 
null));
 
         assertArrayEquals(new String[] {"dings", "bums"}, 
StringUtils.split("dings bums", null));
@@ -1322,17 +1322,17 @@ public class StringUtilsTest {
     }
 
     @Test
-    public void testSplit3NPE1() {
+    void split3NPE1() {
         assertThrows(NullPointerException.class, () -> StringUtils.split(null, 
null, 1));
     }
 
     @Test
-    public void testSplit3NPE2() {
+    void split3NPE2() {
         assertThrows(NullPointerException.class, () -> StringUtils.split(null, 
" ", 1));
     }
 
     @Test
-    public void testSplit3() {
+    void split3() {
         assertArrayEquals(new String[] {"dings"}, StringUtils.split("dings", 
null, 3));
 
         assertArrayEquals(new String[] {"dings", "bums"}, 
StringUtils.split("dings bums", null, 3));
@@ -1349,7 +1349,7 @@ public class StringUtilsTest {
     }
 
     @Test
-    public void testStrip1() {
+    void strip1() {
         assertNull(StringUtils.strip(null));
 
         assertEquals("dings", StringUtils.strip("dings"));
@@ -1358,7 +1358,7 @@ public class StringUtilsTest {
     }
 
     @Test
-    public void testStrip2() {
+    void strip2() {
         assertNull(StringUtils.strip(null, " "));
 
         assertNull(StringUtils.strip(null, null));
@@ -1369,7 +1369,7 @@ public class StringUtilsTest {
     }
 
     @Test
-    public void testStripAll1() {
+    void stripAll1() {
         assertNull(StringUtils.stripAll((String[]) null));
 
         assertArrayEquals(new String[] {}, StringUtils.stripAll());
@@ -1381,7 +1381,7 @@ public class StringUtilsTest {
     }
 
     @Test
-    public void testStripAll2() {
+    void stripAll2() {
         assertNull(StringUtils.stripAll(null, " "));
 
         assertArrayEquals(new String[] {}, StringUtils.stripAll(new String[] 
{}, " "));
@@ -1393,7 +1393,7 @@ public class StringUtilsTest {
     }
 
     @Test
-    public void testStripEnd() {
+    void stripEnd() {
         assertNull(StringUtils.stripEnd(null, null));
 
         assertEquals("dings", StringUtils.stripEnd("dings", null));
@@ -1408,7 +1408,7 @@ public class StringUtilsTest {
     }
 
     @Test
-    public void testStripStart() {
+    void stripStart() {
         assertNull(StringUtils.stripStart(null, null));
 
         assertEquals("dings", StringUtils.stripStart("dings", null));
@@ -1423,7 +1423,7 @@ public class StringUtilsTest {
     }
 
     @Test
-    public void testSubstring1() {
+    void substring1() {
         assertNull(StringUtils.substring(null, 0));
         assertNull(StringUtils.substring(null, -3));
 
@@ -1435,7 +1435,7 @@ public class StringUtilsTest {
     }
 
     @Test
-    public void testSubstring2() {
+    void substring2() {
         assertNull(StringUtils.substring(null, 0, 2));
 
         assertNull(StringUtils.substring(null, -3, 0));
@@ -1450,7 +1450,7 @@ public class StringUtilsTest {
     }
 
     @Test
-    public void testSwapCase() {
+    void swapCase() {
         assertNull(StringUtils.swapCase(null));
 
         assertEquals("DINGS", StringUtils.swapCase("dings"));
@@ -1460,7 +1460,7 @@ public class StringUtilsTest {
 
     @SuppressWarnings("ConstantValue")
     @Test
-    public void testTrim() {
+    void trim() {
         assertNull(StringUtils.trim(null));
 
         assertEquals("", StringUtils.trim("   "));
@@ -1471,7 +1471,7 @@ public class StringUtilsTest {
     }
 
     @Test
-    public void testUncapitalise() {
+    void uncapitalise() {
         assertNull(StringUtils.uncapitalise(null));
 
         assertEquals("   ", StringUtils.uncapitalise("   "));
@@ -1484,7 +1484,7 @@ public class StringUtilsTest {
     }
 
     @Test
-    public void testUncapitaliseAllWords() {
+    void uncapitaliseAllWords() {
         assertNull(StringUtils.uncapitaliseAllWords(null));
 
         assertEquals("   ", StringUtils.uncapitaliseAllWords("   "));
@@ -1497,7 +1497,7 @@ public class StringUtilsTest {
     }
 
     @Test
-    public void testUnifyLineSeparators1() {
+    void unifyLineSeparators1() {
         String sls = System.lineSeparator();
 
         assertNull(StringUtils.unifyLineSeparators(null));
@@ -1508,7 +1508,7 @@ public class StringUtilsTest {
     }
 
     @Test
-    public void testUnifyLineSeparators2() {
+    void unifyLineSeparators2() {
         assertNull(StringUtils.unifyLineSeparators(null, "\n"));
 
         assertEquals("   ", StringUtils.unifyLineSeparators("   ", "\n"));
@@ -1523,7 +1523,7 @@ public class StringUtilsTest {
 
     @SuppressWarnings("ConstantValue")
     @Test
-    public void testUppercase() {
+    void uppercase() {
         assertNull(StringUtils.upperCase(null));
 
         assertEquals("   ", StringUtils.upperCase("   "));
diff --git 
a/src/test/java/org/apache/maven/shared/utils/XmlStreamReaderTest.java 
b/src/test/java/org/apache/maven/shared/utils/XmlStreamReaderTest.java
index 6ae1fa6..c5bc027 100644
--- a/src/test/java/org/apache/maven/shared/utils/XmlStreamReaderTest.java
+++ b/src/test/java/org/apache/maven/shared/utils/XmlStreamReaderTest.java
@@ -36,7 +36,7 @@ import static org.junit.jupiter.api.Assertions.assertThrows;
  * @author <a href="mailto:[email protected]";>HervĂ© Boutemy</a>
  */
 @SuppressWarnings("deprecation")
-public class XmlStreamReaderTest {
+class XmlStreamReaderTest {
     /**
      * french
      */
@@ -103,74 +103,74 @@ public class XmlStreamReaderTest {
     }
 
     @Test
-    public void testNoXmlHeader() throws Exception {
+    void noXmlHeader() throws Exception {
         String xml = "<text>text with no XML header</text>";
         checkXmlContent(xml, "UTF-8");
         checkXmlContent(xml, "UTF-8", BOM_UTF8);
     }
 
     @Test
-    public void testDefaultEncoding() throws Exception {
+    void defaultEncoding() throws Exception {
         checkXmlStreamReader(TEXT_UNICODE, (String) null, "UTF-8", null);
         checkXmlStreamReader(TEXT_UNICODE, null, "UTF-8", BOM_UTF8);
     }
 
     @Test
-    public void testUTF8Encoding() throws Exception {
+    void utf8Encoding() throws Exception {
         checkXmlStreamReader(TEXT_UNICODE, "UTF-8");
         checkXmlStreamReader(TEXT_UNICODE, "UTF-8", "UTF-8", BOM_UTF8);
     }
 
     @Test
-    public void testUTF16Encoding() throws Exception {
+    void utf16Encoding() throws Exception {
         checkXmlStreamReader(TEXT_UNICODE, "UTF-16", "UTF-16BE", null);
         checkXmlStreamReader(TEXT_UNICODE, "UTF-16", "UTF-16LE", BOM_UTF16LE);
         checkXmlStreamReader(TEXT_UNICODE, "UTF-16", "UTF-16BE", BOM_UTF16BE);
     }
 
     @Test
-    public void testUTF16BEEncoding() throws Exception {
+    void utf16BEEncoding() throws Exception {
         checkXmlStreamReader(TEXT_UNICODE, "UTF-16BE");
     }
 
     @Test
-    public void testUTF16LEEncoding() throws Exception {
+    void utf16LEEncoding() throws Exception {
         checkXmlStreamReader(TEXT_UNICODE, "UTF-16LE");
     }
 
     @Test
-    public void testLatin1Encoding() throws Exception {
+    void latin1Encoding() throws Exception {
         checkXmlStreamReader(TEXT_LATIN1, "ISO-8859-1");
     }
 
     @Test
-    public void testLatin7Encoding() throws Exception {
+    void latin7Encoding() throws Exception {
         checkXmlStreamReader(TEXT_LATIN7, "ISO-8859-7");
     }
 
     @Test
-    public void testLatin15Encoding() throws Exception {
+    void latin15Encoding() throws Exception {
         checkXmlStreamReader(TEXT_LATIN15, "ISO-8859-15");
     }
 
     @Test
-    public void testEUCJPEncoding() throws Exception {
+    void eucjpEncoding() throws Exception {
         checkXmlStreamReader(TEXT_EUC_JP, "EUC-JP");
     }
 
     @Test
-    public void testEBCDICEncoding() throws Exception {
+    void ebcdicEncoding() throws Exception {
         checkXmlStreamReader("simple text in EBCDIC", "CP1047");
     }
 
     @Test
-    public void testInappropriateEncoding() {
+    void inappropriateEncoding() {
         // expected failure, since the encoding does not contain some 
characters
         assertThrows(AssertionFailedError.class, () -> 
checkXmlStreamReader(TEXT_UNICODE, "ISO-8859-2"));
     }
 
     @Test
-    public void testEncodingAttribute() throws Exception {
+    void encodingAttribute() throws Exception {
         checkXmlContent("<?xml version='1.0' encoding='US-ASCII'?><element 
encoding='attribute value'/>", "US-ASCII");
         checkXmlContent(
                 "<?xml version='1.0' encoding  =  'US-ASCII'  ?><element 
encoding='attribute value'/>", "US-ASCII");
diff --git 
a/src/test/java/org/apache/maven/shared/utils/cli/CommandLineUtilsTest.java 
b/src/test/java/org/apache/maven/shared/utils/cli/CommandLineUtilsTest.java
index 9563f3e..e5ca6e1 100644
--- a/src/test/java/org/apache/maven/shared/utils/cli/CommandLineUtilsTest.java
+++ b/src/test/java/org/apache/maven/shared/utils/cli/CommandLineUtilsTest.java
@@ -38,13 +38,13 @@ import static org.junit.jupiter.api.Assertions.assertTrue;
 import static org.junit.jupiter.api.Assertions.fail;
 
 @SuppressWarnings("deprecation")
-public class CommandLineUtilsTest {
+class CommandLineUtilsTest {
 
     /**
      * Tests that case-insensitive environment variables are normalized to 
upper case.
      */
     @Test
-    public void testGetSystemEnvVarsCaseInsensitive() {
+    void getSystemEnvVarsCaseInsensitive() {
         Properties vars = CommandLineUtils.getSystemEnvVars(false);
         for (Object o : vars.keySet()) {
             String variable = (String) o;
@@ -53,7 +53,7 @@ public class CommandLineUtilsTest {
     }
 
     @Test
-    public void testEnsureCaseSensitivity() {
+    void ensureCaseSensitivity() {
         Map<String, String> data = new HashMap<>();
         data.put("abz", "cool");
         assertTrue(CommandLineUtils.ensureCaseSensitivity(data, 
false).containsKey("ABZ"));
@@ -64,7 +64,7 @@ public class CommandLineUtilsTest {
      * Tests that environment variables on Windows are normalized to upper 
case. Does nothing on Unix platforms.
      */
     @Test
-    public void testGetSystemEnvVarsWindows() {
+    void getSystemEnvVarsWindows() {
         if (!Os.isFamily(Os.FAMILY_WINDOWS)) {
             return;
         }
@@ -79,7 +79,7 @@ public class CommandLineUtilsTest {
      * Tests the splitting of a command line into distinct arguments.
      */
     @Test
-    public void testTranslateCommandline() throws Exception {
+    void translateCommandline() throws Exception {
         assertCmdLineArgs(new String[] {}, null);
         assertCmdLineArgs(new String[] {}, "");
 
diff --git 
a/src/test/java/org/apache/maven/shared/utils/cli/shell/BourneShellTest.java 
b/src/test/java/org/apache/maven/shared/utils/cli/shell/BourneShellTest.java
index db9f469..5125b4f 100644
--- a/src/test/java/org/apache/maven/shared/utils/cli/shell/BourneShellTest.java
+++ b/src/test/java/org/apache/maven/shared/utils/cli/shell/BourneShellTest.java
@@ -28,14 +28,14 @@ import static org.junit.jupiter.api.Assertions.assertEquals;
 import static org.junit.jupiter.api.Assertions.assertTrue;
 
 @SuppressWarnings("deprecation")
-public class BourneShellTest {
+class BourneShellTest {
 
     Shell newShell() {
         return new BourneShell();
     }
 
     @Test
-    public void testQuoteWorkingDirectoryAndExecutable() {
+    void quoteWorkingDirectoryAndExecutable() {
         Shell sh = newShell();
 
         sh.setWorkingDirectory("/usr/local/bin");
@@ -47,7 +47,7 @@ public class BourneShellTest {
     }
 
     @Test
-    public void testQuoteWorkingDirectoryAndExecutableWDPathWithSingleQuotes() 
{
+    void quoteWorkingDirectoryAndExecutableWDPathWithSingleQuotes() {
         Shell sh = newShell();
 
         sh.setWorkingDirectory("/usr/local/'something else'");
@@ -59,7 +59,7 @@ public class BourneShellTest {
     }
 
     @Test
-    public void 
testQuoteWorkingDirectoryAndExecutableWDPathWithSingleQuotesBackslashFileSep() {
+    void 
quoteWorkingDirectoryAndExecutableWDPathWithSingleQuotesBackslashFileSep() {
         Shell sh = newShell();
 
         sh.setWorkingDirectory("\\usr\\local\\'something else'");
@@ -71,7 +71,7 @@ public class BourneShellTest {
     }
 
     @Test
-    public void testPreserveSingleQuotesOnArgument() {
+    void preserveSingleQuotesOnArgument() {
         Shell sh = newShell();
 
         sh.setWorkingDirectory("/usr/bin");
@@ -84,7 +84,7 @@ public class BourneShellTest {
     }
 
     @Test
-    public void testAddSingleQuotesOnArgumentWithSpaces() {
+    void addSingleQuotesOnArgumentWithSpaces() {
         Shell sh = newShell();
 
         sh.setWorkingDirectory("/usr/bin");
@@ -97,7 +97,7 @@ public class BourneShellTest {
     }
 
     @Test
-    public void testAddArgumentWithSingleQuote() {
+    void addArgumentWithSingleQuote() {
         Shell sh = newShell();
 
         sh.setWorkingDirectory("/usr/bin");
@@ -110,7 +110,7 @@ public class BourneShellTest {
     }
 
     @Test
-    public void testArgumentsWithSemicolon() {
+    void argumentsWithSemicolon() {
         Shell sh = newShell();
 
         sh.setWorkingDirectory("/usr/bin");
@@ -157,7 +157,7 @@ public class BourneShellTest {
     }
 
     @Test
-    public void testBourneShellQuotingCharacters() {
+    void bourneShellQuotingCharacters() {
         // { ' ', '$', ';', '&', '|', '<', '>', '*', '?', '(', ')' };
         // test with values https://steve-parker.org/sh/bourne.shtml Appendix 
B - Meta-characters and Reserved Words
         Commandline commandline = new Commandline(newShell());
diff --git 
a/src/test/java/org/apache/maven/shared/utils/introspection/ReflectionValueExtractorTest.java
 
b/src/test/java/org/apache/maven/shared/utils/introspection/ReflectionValueExtractorTest.java
index 377ebe0..d09d34e 100644
--- 
a/src/test/java/org/apache/maven/shared/utils/introspection/ReflectionValueExtractorTest.java
+++ 
b/src/test/java/org/apache/maven/shared/utils/introspection/ReflectionValueExtractorTest.java
@@ -35,7 +35,7 @@ import static org.junit.jupiter.api.Assertions.assertThrows;
  * @author <a href="mailto:[email protected]";>Jason van Zyl</a>
  *
  */
-public class ReflectionValueExtractorTest {
+class ReflectionValueExtractorTest {
     private Project project;
 
     @BeforeEach
@@ -65,7 +65,7 @@ public class ReflectionValueExtractorTest {
     }
 
     @Test
-    public void testValueExtraction() throws Exception {
+    void valueExtraction() throws Exception {
         // 
----------------------------------------------------------------------
         // Top level values
         // 
----------------------------------------------------------------------
@@ -145,14 +145,14 @@ public class ReflectionValueExtractorTest {
     }
 
     @Test
-    public void testValueExtractorWithAInvalidExpression() throws Exception {
+    void valueExtractorWithAInvalidExpression() throws Exception {
         assertNull(ReflectionValueExtractor.evaluate("project.foo", project));
         
assertNull(ReflectionValueExtractor.evaluate("project.dependencies[10]", 
project));
         
assertNull(ReflectionValueExtractor.evaluate("project.dependencies[0].foo", 
project));
     }
 
     @Test
-    public void testMappedDottedKey() throws Exception {
+    void mappedDottedKey() throws Exception {
         Map<String, String> map = new HashMap<>();
         map.put("a.b", "a.b-value");
 
@@ -160,7 +160,7 @@ public class ReflectionValueExtractorTest {
     }
 
     @Test
-    public void testIndexedMapped() throws Exception {
+    void indexedMapped() throws Exception {
         Map<Object, Object> map = new HashMap<>();
         map.put("a", "a-value");
         List<Object> list = new ArrayList<>();
@@ -170,7 +170,7 @@ public class ReflectionValueExtractorTest {
     }
 
     @Test
-    public void testMappedIndexed() throws Exception {
+    void mappedIndexed() throws Exception {
         List<Object> list = new ArrayList<>();
         list.add("a-value");
         Map<Object, Object> map = new HashMap<>();
@@ -179,26 +179,26 @@ public class ReflectionValueExtractorTest {
     }
 
     @Test
-    public void testMappedMissingDot() throws Exception {
+    void mappedMissingDot() throws Exception {
         Map<Object, Object> map = new HashMap<>();
         map.put("a", new ValueHolder("a-value"));
         assertNull(ReflectionValueExtractor.evaluate("h.value(a)value", new 
ValueHolder(map)));
     }
 
     @Test
-    public void testIndexedMissingDot() throws Exception {
+    void indexedMissingDot() throws Exception {
         List<Object> list = new ArrayList<>();
         list.add(new ValueHolder("a-value"));
         assertNull(ReflectionValueExtractor.evaluate("h.value[0]value", new 
ValueHolder(list)));
     }
 
     @Test
-    public void testDotDot() throws Exception {
+    void dotDot() throws Exception {
         assertNull(ReflectionValueExtractor.evaluate("h..value", new 
ValueHolder("value")));
     }
 
     @Test
-    public void testBadIndexedSyntax() throws Exception {
+    void badIndexedSyntax() throws Exception {
         List<Object> list = new ArrayList<>();
         list.add("a-value");
         Object value = new ValueHolder(list);
@@ -212,7 +212,7 @@ public class ReflectionValueExtractorTest {
     }
 
     @Test
-    public void testBadMappedSyntax() throws Exception {
+    void badMappedSyntax() throws Exception {
         Map<Object, Object> map = new HashMap<>();
         map.put("a", "a-value");
         Object value = new ValueHolder(map);
@@ -224,7 +224,7 @@ public class ReflectionValueExtractorTest {
     }
 
     @Test
-    public void testIllegalIndexedType() {
+    void illegalIndexedType() {
         IntrospectionException e = assertThrows(
                 IntrospectionException.class,
                 () -> ReflectionValueExtractor.evaluate("h.value[1]", new 
ValueHolder("string")));
@@ -232,7 +232,7 @@ public class ReflectionValueExtractorTest {
     }
 
     @Test
-    public void testIllegalMappedType() {
+    void illegalMappedType() {
         IntrospectionException e = assertThrows(
                 IntrospectionException.class,
                 () -> ReflectionValueExtractor.evaluate("h.value(key)", new 
ValueHolder("string")));
@@ -240,12 +240,12 @@ public class ReflectionValueExtractorTest {
     }
 
     @Test
-    public void testTrimRootToken() throws Exception {
+    void trimRootToken() throws Exception {
         assertNull(ReflectionValueExtractor.evaluate("project", project, 
true));
     }
 
     @Test
-    public void testArtifactMap() throws Exception {
+    void artifactMap() throws Exception {
         assertEquals(
                 "g0",
                 ((Artifact) 
ReflectionValueExtractor.evaluate("project.artifactMap(g0:a0:c0)", 
project)).getGroupId());
@@ -266,7 +266,7 @@ public class ReflectionValueExtractorTest {
         private String extension;
         private String classifier;
 
-        public Artifact(String groupId, String artifactId, String version, 
String extension, String classifier) {
+        Artifact(String groupId, String artifactId, String version, String 
extension, String classifier) {
             this.groupId = groupId;
             this.artifactId = artifactId;
             this.version = version;
@@ -460,7 +460,7 @@ public class ReflectionValueExtractorTest {
     public static class ValueHolder {
         private final Object value;
 
-        public ValueHolder(Object value) {
+        ValueHolder(Object value) {
             this.value = value;
         }
 
@@ -470,7 +470,7 @@ public class ReflectionValueExtractorTest {
     }
 
     @Test
-    public void testRootPropertyRegression() throws Exception {
+    void rootPropertyRegression() throws Exception {
         Project project = new Project();
         project.setDescription("c:\\\\org\\apache\\test");
         Object evalued = ReflectionValueExtractor.evaluate("description", 
project);
diff --git 
a/src/test/java/org/apache/maven/shared/utils/io/DirectoryScannerTest.java 
b/src/test/java/org/apache/maven/shared/utils/io/DirectoryScannerTest.java
index 84843c7..0ac136f 100644
--- a/src/test/java/org/apache/maven/shared/utils/io/DirectoryScannerTest.java
+++ b/src/test/java/org/apache/maven/shared/utils/io/DirectoryScannerTest.java
@@ -38,7 +38,7 @@ import static org.junit.jupiter.api.Assertions.fail;
 import static org.junit.jupiter.api.Assumptions.assumeFalse;
 
 @SuppressWarnings("deprecation")
-public class DirectoryScannerTest {
+class DirectoryScannerTest {
     private static final String[] NONE = new String[0];
 
     @TempDir
@@ -66,7 +66,7 @@ public class DirectoryScannerTest {
     }
 
     @Test
-    public void testSimpleScan() throws Exception {
+    void simpleScan() throws Exception {
         createTestData();
 
         fitScanTest(
@@ -100,7 +100,7 @@ public class DirectoryScannerTest {
     }
 
     @Test
-    public void testSimpleIncludes() throws Exception {
+    void simpleIncludes() throws Exception {
         createTestData();
 
         fitScanTest(
@@ -132,12 +132,12 @@ public class DirectoryScannerTest {
     }
 
     @Test
-    public void testIncludesWithNull() throws Exception {
+    void includesWithNull() throws Exception {
         testXcludesWithNull(new String[] {null}, null, "includes");
     }
 
     @Test
-    public void testExcludesWithNull() throws Exception {
+    void excludesWithNull() throws Exception {
         testXcludesWithNull(null, new String[] {null}, "excludes");
     }
 
@@ -244,7 +244,7 @@ public class DirectoryScannerTest {
        Creates a standard directory layout with symlinks and files.
     */
     @Test
-    public void testSimpleExcludes() throws Exception {
+    void simpleExcludes() throws Exception {
         createTestData();
 
         fitScanTest(
@@ -379,7 +379,7 @@ public class DirectoryScannerTest {
     }
 
     @Test
-    public void testScanDiff() throws Exception {
+    void scanDiff() throws Exception {
         createTestData();
 
         DirectoryScanner dss = new DirectoryScanner();
diff --git 
a/src/test/java/org/apache/maven/shared/utils/io/SelectorUtilsTest.java 
b/src/test/java/org/apache/maven/shared/utils/io/SelectorUtilsTest.java
index 9d544ae..d90c12c 100644
--- a/src/test/java/org/apache/maven/shared/utils/io/SelectorUtilsTest.java
+++ b/src/test/java/org/apache/maven/shared/utils/io/SelectorUtilsTest.java
@@ -30,27 +30,27 @@ import static org.junit.jupiter.api.Assertions.assertTrue;
  * Test the {@link SelectorUtils} class.
  */
 @SuppressWarnings("deprecation")
-public class SelectorUtilsTest {
+class SelectorUtilsTest {
 
     @Test
-    public void testMatchPatternStart() {
+    void matchPatternStart() {
         assertThrows(NullPointerException.class, () -> 
SelectorUtils.matchPatternStart(null, null));
     }
 
     @Test
-    public void testEmptyStrings() {
+    void emptyStrings() {
         assertTrue(SelectorUtils.matchPatternStart("", ""));
     }
 
     @Test
-    public void testRegexPrefix() {
+    void regexPrefix() {
         assertTrue(SelectorUtils.matchPatternStart(
                 SelectorUtils.REGEX_HANDLER_PREFIX + File.separator + "aaa" + 
SelectorUtils.PATTERN_HANDLER_SUFFIX,
                 ""));
     }
 
     @Test
-    public void testAntPatternStrings() {
+    void antPatternStrings() {
         assertAntDoesNotMatch("/aaa", "");
         assertAntDoesNotMatch("\\aaa", "");
         assertAntMatch("aaa", "");
diff --git 
a/src/test/java/org/apache/maven/shared/utils/xml/XmlWriterUtilTest.java 
b/src/test/java/org/apache/maven/shared/utils/xml/XmlWriterUtilTest.java
index 8df04bb..7ebd028 100644
--- a/src/test/java/org/apache/maven/shared/utils/xml/XmlWriterUtilTest.java
+++ b/src/test/java/org/apache/maven/shared/utils/xml/XmlWriterUtilTest.java
@@ -35,7 +35,7 @@ import static org.junit.jupiter.api.Assertions.assertTrue;
  *
  */
 @SuppressWarnings("deprecation")
-public class XmlWriterUtilTest {
+class XmlWriterUtilTest {
     private OutputStream output;
 
     private Writer writer;
@@ -57,7 +57,7 @@ public class XmlWriterUtilTest {
      * @throws Exception if any
      */
     @Test
-    public void testWriteLineBreakXMLWriter() throws Exception {
+    void writeLineBreakXMLWriter() throws Exception {
         XmlWriterUtil.writeLineBreak(xmlWriter);
         writer.close();
         assertEquals(1, StringUtils.countMatches(output.toString(), "\r\n"));
@@ -69,7 +69,7 @@ public class XmlWriterUtilTest {
      * @throws Exception if any
      */
     @Test
-    public void testWriteLineBreakXMLWriterInt() throws Exception {
+    void writeLineBreakXMLWriterInt() throws Exception {
         XmlWriterUtil.writeLineBreak(xmlWriter, 10);
         writer.close();
         assertEquals(10, StringUtils.countMatches(output.toString(), "\r\n"));
@@ -81,7 +81,7 @@ public class XmlWriterUtilTest {
      * @throws Exception if any
      */
     @Test
-    public void testWriteLineBreakXMLWriterIntInt() throws Exception {
+    void writeLineBreakXMLWriterIntInt() throws Exception {
         XmlWriterUtil.writeLineBreak(xmlWriter, 10, 2);
         writer.close();
         assertEquals(10, StringUtils.countMatches(output.toString(), "\r\n"));
@@ -97,7 +97,7 @@ public class XmlWriterUtilTest {
      * @throws Exception if any
      */
     @Test
-    public void testWriteLineBreakXMLWriterIntIntInt() throws Exception {
+    void writeLineBreakXMLWriterIntIntInt() throws Exception {
         XmlWriterUtil.writeLineBreak(xmlWriter, 10, 2, 4);
         writer.close();
         assertEquals(10, StringUtils.countMatches(output.toString(), "\r\n"));
@@ -110,7 +110,7 @@ public class XmlWriterUtilTest {
      * @throws Exception if any
      */
     @Test
-    public void testWriteCommentLineBreakXMLWriter() throws Exception {
+    void writeCommentLineBreakXMLWriter() throws Exception {
         XmlWriterUtil.writeCommentLineBreak(xmlWriter);
         writer.close();
         assertEquals(
@@ -125,14 +125,14 @@ public class XmlWriterUtilTest {
      * @throws Exception if any
      */
     @Test
-    public void testWriteCommentLineBreakXMLWriterInt() throws Exception {
+    void writeCommentLineBreakXMLWriterInt() throws Exception {
         XmlWriterUtil.writeCommentLineBreak(xmlWriter, 20);
         writer.close();
         assertEquals("<!-- ========== -->" + "\r\n", output.toString());
     }
 
     @Test
-    public void testWriteCommentLineBreak() throws Exception {
+    void writeCommentLineBreak() throws Exception {
         XmlWriterUtil.writeCommentLineBreak(xmlWriter, 10);
         writer.close();
         assertEquals("<!--  -->" + "\r\n", output.toString());
@@ -144,7 +144,7 @@ public class XmlWriterUtilTest {
      * @throws Exception if any
      */
     @Test
-    public void testWriteCommentXMLWriterString() throws Exception {
+    void writeCommentXMLWriterString() throws Exception {
         XmlWriterUtil.writeComment(xmlWriter, "hello");
         writer.close();
         assertEquals(
@@ -154,7 +154,7 @@ public class XmlWriterUtilTest {
     }
 
     @Test
-    public void testWriteComment() throws Exception {
+    void writeComment() throws Exception {
         XmlWriterUtil.writeComment(
                 xmlWriter, 
"hellooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo");
         writer.close();
@@ -165,7 +165,7 @@ public class XmlWriterUtilTest {
     }
 
     @Test
-    public void testWriteComment2() throws Exception {
+    void writeComment2() throws Exception {
         XmlWriterUtil.writeComment(xmlWriter, "hello\nworld");
         writer.close();
         String sb = "<!-- hello                                                
                  -->\r\n"
@@ -180,7 +180,7 @@ public class XmlWriterUtilTest {
      * @throws Exception if any
      */
     @Test
-    public void testWriteCommentXMLWriterStringInt() throws Exception {
+    void writeCommentXMLWriterStringInt() throws Exception {
         String indent = StringUtils.repeat(" ", 2 * 
XmlWriterUtil.DEFAULT_INDENTATION_SIZE);
 
         XmlWriterUtil.writeComment(xmlWriter, "hello", 2);
@@ -193,7 +193,7 @@ public class XmlWriterUtilTest {
     }
 
     @Test
-    public void testWriteComment3() throws Exception {
+    void writeComment3() throws Exception {
         String indent = StringUtils.repeat(" ", 2 * 
XmlWriterUtil.DEFAULT_INDENTATION_SIZE);
         XmlWriterUtil.writeComment(xmlWriter, "hello\nworld", 2);
         writer.close();
@@ -212,7 +212,7 @@ public class XmlWriterUtilTest {
      * @throws Exception if any
      */
     @Test
-    public void testWriteCommentXMLWriterStringIntInt() throws Exception {
+    void writeCommentXMLWriterStringIntInt() throws Exception {
         String repeat = StringUtils.repeat(" ", 2 * 4);
 
         XmlWriterUtil.writeComment(xmlWriter, "hello", 2, 4);
@@ -223,7 +223,7 @@ public class XmlWriterUtilTest {
     }
 
     @Test
-    public void testWriteCommentXMLWriterStringIntInt2() throws Exception {
+    void writeCommentXMLWriterStringIntInt2() throws Exception {
         String repeat = StringUtils.repeat(" ", 2 * 4);
         XmlWriterUtil.writeComment(xmlWriter, "hello\nworld", 2, 4);
         writer.close();
@@ -242,7 +242,7 @@ public class XmlWriterUtilTest {
      * @throws Exception if any
      */
     @Test
-    public void testWriteCommentXMLWriterStringIntIntInt() throws Exception {
+    void writeCommentXMLWriterStringIntIntInt() throws Exception {
         String indent = StringUtils.repeat(" ", 2 * 4);
 
         XmlWriterUtil.writeComment(xmlWriter, "hello", 2, 4, 50);
@@ -253,7 +253,7 @@ public class XmlWriterUtilTest {
     }
 
     @Test
-    public void testWriteCommentXMLWriterStringIntIntInt2() throws Exception {
+    void writeCommentXMLWriterStringIntIntInt2() throws Exception {
         String indent = StringUtils.repeat(" ", 2 * 4);
         XmlWriterUtil.writeComment(xmlWriter, "hello", 2, 4, 10);
         writer.close();
@@ -267,7 +267,7 @@ public class XmlWriterUtilTest {
      * @throws Exception if any
      */
     @Test
-    public void testWriteCommentTextXMLWriterStringInt() throws Exception {
+    void writeCommentTextXMLWriterStringInt() throws Exception {
         XmlWriterUtil.writeCommentText(xmlWriter, "hello", 0);
         writer.close();
         String sb = "\r\n" + "<!-- 
====================================================================== -->\r\n"
@@ -278,7 +278,7 @@ public class XmlWriterUtilTest {
     }
 
     @Test
-    public void testWriteCommentTextXMLWriterStringInt2() throws Exception {
+    void writeCommentTextXMLWriterStringInt2() throws Exception {
         String indent = StringUtils.repeat(" ", 2 * 2);
 
         XmlWriterUtil.writeCommentText(
@@ -309,7 +309,7 @@ public class XmlWriterUtilTest {
      * @throws Exception if any
      */
     @Test
-    public void testWriteCommentTextXMLWriterStringIntInt() throws Exception {
+    void writeCommentTextXMLWriterStringIntInt() throws Exception {
         String indent = StringUtils.repeat(" ", 2 * 4);
 
         XmlWriterUtil.writeCommentText(xmlWriter, "hello", 2, 4);
@@ -331,7 +331,7 @@ public class XmlWriterUtilTest {
      * @throws Exception if any
      */
     @Test
-    public void testWriteCommentTextXMLWriterStringIntIntInt() throws 
Exception {
+    void writeCommentTextXMLWriterStringIntIntInt() throws Exception {
         String indent = StringUtils.repeat(" ", 2 * 4);
 
         XmlWriterUtil.writeCommentText(xmlWriter, "hello", 2, 4, 50);
@@ -353,7 +353,7 @@ public class XmlWriterUtilTest {
      * @throws Exception if any
      */
     @Test
-    public void testWriteCommentNull() throws Exception {
+    void writeCommentNull() throws Exception {
         XmlWriterUtil.writeComment(xmlWriter, null);
         writer.close();
         assertEquals(
@@ -367,7 +367,7 @@ public class XmlWriterUtilTest {
      * @throws Exception if any
      */
     @Test
-    public void testWriteCommentShort() throws Exception {
+    void writeCommentShort() throws Exception {
         XmlWriterUtil.writeComment(xmlWriter, "This is a short text");
         writer.close();
         assertEquals(
@@ -381,7 +381,7 @@ public class XmlWriterUtilTest {
      * @throws Exception if any
      */
     @Test
-    public void testWriteCommentLong() throws Exception {
+    void writeCommentLong() throws Exception {
         XmlWriterUtil.writeComment(
                 xmlWriter,
                 "Maven is a software project management and comprehension 
tool. "
diff --git 
a/src/test/java/org/apache/maven/shared/utils/xml/Xpp3DomBuilderTest.java 
b/src/test/java/org/apache/maven/shared/utils/xml/Xpp3DomBuilderTest.java
index bc6c45b..e17f75e 100644
--- a/src/test/java/org/apache/maven/shared/utils/xml/Xpp3DomBuilderTest.java
+++ b/src/test/java/org/apache/maven/shared/utils/xml/Xpp3DomBuilderTest.java
@@ -37,7 +37,7 @@ import static org.junit.jupiter.api.Assertions.fail;
  * @author Kristian Rosenvold
  */
 @SuppressWarnings("deprecation")
-public class Xpp3DomBuilderTest {
+class Xpp3DomBuilderTest {
 
     private static final String XML_DECLARATION = "<?xml version=\"1.0\" 
encoding=\"UTF-8\"?>\n";
 
@@ -54,7 +54,7 @@ public class Xpp3DomBuilderTest {
     }
 
     @Test
-    public void testUnrecognizedEncoding() {
+    void unrecognizedEncoding() {
 
         byte[] data = "<foo/>".getBytes(StandardCharsets.UTF_8);
         InputStream in = new ByteArrayInputStream(data);
@@ -97,7 +97,7 @@ public class Xpp3DomBuilderTest {
     }
 
     @Test
-    public void testMalformedXml() {
+    void malformedXml() {
         try {
             Xpp3DomBuilder.build(new StringReader("<newRoot>" + 
createDomString()));
             fail("We're supposed to fail");
diff --git 
a/src/test/java/org/apache/maven/shared/utils/xml/pull/Xpp3DomTest.java 
b/src/test/java/org/apache/maven/shared/utils/xml/pull/Xpp3DomTest.java
index 4d18451..22f0d90 100644
--- a/src/test/java/org/apache/maven/shared/utils/xml/pull/Xpp3DomTest.java
+++ b/src/test/java/org/apache/maven/shared/utils/xml/pull/Xpp3DomTest.java
@@ -34,7 +34,7 @@ import static org.junit.jupiter.api.Assertions.assertThrows;
  * @author Kristian Rosenvold
  */
 @SuppressWarnings({"deprecation", "DataFlowIssue"})
-public class Xpp3DomTest {
+class Xpp3DomTest {
 
     private Xpp3Dom createElement(String element, String value) {
         Xpp3Dom t1s1 = new Xpp3Dom(element);
@@ -164,7 +164,7 @@ public class Xpp3DomTest {
     }
 
     @Test
-    public void testEquals() {
+    void equals() {
         Xpp3Dom dom = new Xpp3Dom("single");
         dom.addChild(new Xpp3Dom("kid"));
 

Reply via email to