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

ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-vfs.git


The following commit(s) were added to refs/heads/master by this push:
     new 9031ff63 Fix Checkstyle MethodName issues
9031ff63 is described below

commit 9031ff631b1929a4d2dbea14f3476764f62dd3f2
Author: Gary Gregory <[email protected]>
AuthorDate: Wed Oct 11 16:04:38 2023 -0400

    Fix Checkstyle MethodName issues
---
 .../java/org/apache/commons/vfs2/ContentTests.java |  4 ++--
 .../java/org/apache/commons/vfs2/UrlTests.java     |  2 +-
 .../test/java/org/apache/commons/vfs2/VFSTest.java |  4 ++--
 .../commons/vfs2/impl/DefaultFileMonitorTest.java  |  4 ++--
 .../vfs2/impl/DefaultFileSystemManagerTest.java    |  2 +-
 .../vfs2/impl/StandardFileSystemManagerTest.java   |  2 +-
 .../commons/vfs2/provider/res/ResSchemeTest.java   | 28 +++++++++++-----------
 .../vfs2/provider/url/UrlFileNameParserTest.java   |  6 ++---
 .../commons/vfs2/provider/zip/Jira733Test.java     | 26 ++++++++++----------
 .../commons/vfs2/util/FileObjectUtilsTest.java     |  8 +++----
 .../commons/vfs2/util/RandomAccessModeTest.java    |  2 +-
 11 files changed, 44 insertions(+), 44 deletions(-)

diff --git 
a/commons-vfs2/src/test/java/org/apache/commons/vfs2/ContentTests.java 
b/commons-vfs2/src/test/java/org/apache/commons/vfs2/ContentTests.java
index 5ec7b9af..ab3f0275 100644
--- a/commons-vfs2/src/test/java/org/apache/commons/vfs2/ContentTests.java
+++ b/commons-vfs2/src/test/java/org/apache/commons/vfs2/ContentTests.java
@@ -154,7 +154,7 @@ public class ContentTests extends AbstractProviderTestCase {
     }
 
     @Test
-    public void testGetString_Charset() throws Exception {
+    public void testGetStringCharset() throws Exception {
         // Get the test file
         try (FileObject file = getReadFolder().resolveFile("file1.txt")) {
             assertEquals(FileType.FILE, file.getType());
@@ -165,7 +165,7 @@ public class ContentTests extends AbstractProviderTestCase {
     }
 
     @Test
-    public void testGetString_String() throws Exception {
+    public void testGetStringString() throws Exception {
         // Get the test file
         try (FileObject file = getReadFolder().resolveFile("file1.txt")) {
             assertEquals(FileType.FILE, file.getType());
diff --git a/commons-vfs2/src/test/java/org/apache/commons/vfs2/UrlTests.java 
b/commons-vfs2/src/test/java/org/apache/commons/vfs2/UrlTests.java
index 84c39d51..c379dbf5 100644
--- a/commons-vfs2/src/test/java/org/apache/commons/vfs2/UrlTests.java
+++ b/commons-vfs2/src/test/java/org/apache/commons/vfs2/UrlTests.java
@@ -39,7 +39,7 @@ public class UrlTests extends AbstractProviderTestCase {
     }
 
     @Test
-    public void testReservedCharacter_Space() throws FileSystemException {
+    public void testReservedCharacterSpace() throws FileSystemException {
         try (FileObject fileObject = getReadFolder().resolveFile("file with 
spaces.txt")) {
             final URL url = fileObject.getURL();
             final String string = url.toString();
diff --git a/commons-vfs2/src/test/java/org/apache/commons/vfs2/VFSTest.java 
b/commons-vfs2/src/test/java/org/apache/commons/vfs2/VFSTest.java
index 4aea92bb..d4d0daca 100644
--- a/commons-vfs2/src/test/java/org/apache/commons/vfs2/VFSTest.java
+++ b/commons-vfs2/src/test/java/org/apache/commons/vfs2/VFSTest.java
@@ -35,7 +35,7 @@ public class VFSTest {
      * @since 2.5.0
      */
     @Test
-    public void test_close() throws FileSystemException {
+    public void testClose() throws FileSystemException {
         try (FileSystemManager fileSystemManager = new 
StandardFileSystemManager()) {
             VFS.setManager(fileSystemManager);
             VFS.setManager(null);
@@ -45,7 +45,7 @@ public class VFSTest {
     }
 
     @Test
-    public void test_setManager() throws FileSystemException {
+    public void testSetManager() throws FileSystemException {
         final StandardFileSystemManager fileSystemManager = new 
StandardFileSystemManager();
         VFS.setManager(fileSystemManager);
         assertEquals(fileSystemManager, VFS.getManager());
diff --git 
a/commons-vfs2/src/test/java/org/apache/commons/vfs2/impl/DefaultFileMonitorTest.java
 
b/commons-vfs2/src/test/java/org/apache/commons/vfs2/impl/DefaultFileMonitorTest.java
index 012dc5fe..eda372e4 100644
--- 
a/commons-vfs2/src/test/java/org/apache/commons/vfs2/impl/DefaultFileMonitorTest.java
+++ 
b/commons-vfs2/src/test/java/org/apache/commons/vfs2/impl/DefaultFileMonitorTest.java
@@ -127,7 +127,7 @@ public class DefaultFileMonitorTest {
      */
     @Disabled("VFS-299")
     @Test
-    public void ignore_testAddRemove() throws Exception {
+    public void testIgnoreTestAddRemove() throws Exception {
         try (FileObject fileObject = 
fileSystemManager.resolveFile(testFile.toURI().toString())) {
             final CountingListener listener = new CountingListener();
             try (DefaultFileMonitor monitor = new 
DefaultFileMonitor(listener)) {
@@ -150,7 +150,7 @@ public class DefaultFileMonitorTest {
      */
     @Disabled("VFS-299")
     @Test
-    public void ignore_testStartStop() throws Exception {
+    public void testIgnoreTestStartStop() throws Exception {
         try (FileObject fileObject = 
fileSystemManager.resolveFile(testFile.toURI().toString())) {
             final CountingListener stoppedListener = new CountingListener();
             try (DefaultFileMonitor stoppedMonitor = new 
DefaultFileMonitor(stoppedListener)) {
diff --git 
a/commons-vfs2/src/test/java/org/apache/commons/vfs2/impl/DefaultFileSystemManagerTest.java
 
b/commons-vfs2/src/test/java/org/apache/commons/vfs2/impl/DefaultFileSystemManagerTest.java
index 6d94b35e..2e55250e 100644
--- 
a/commons-vfs2/src/test/java/org/apache/commons/vfs2/impl/DefaultFileSystemManagerTest.java
+++ 
b/commons-vfs2/src/test/java/org/apache/commons/vfs2/impl/DefaultFileSystemManagerTest.java
@@ -59,7 +59,7 @@ public class DefaultFileSystemManagerTest {
      * @throws FileSystemException
      */
     @Test
-    public void test_close() throws FileSystemException {
+    public void testClose() throws FileSystemException {
         try (FileSystemManager fileSystemManager = new 
DefaultFileSystemManager()) {
             VFS.setManager(fileSystemManager);
             VFS.setManager(null);
diff --git 
a/commons-vfs2/src/test/java/org/apache/commons/vfs2/impl/StandardFileSystemManagerTest.java
 
b/commons-vfs2/src/test/java/org/apache/commons/vfs2/impl/StandardFileSystemManagerTest.java
index 6f2a1e78..b6bf6d9d 100644
--- 
a/commons-vfs2/src/test/java/org/apache/commons/vfs2/impl/StandardFileSystemManagerTest.java
+++ 
b/commons-vfs2/src/test/java/org/apache/commons/vfs2/impl/StandardFileSystemManagerTest.java
@@ -39,7 +39,7 @@ public class StandardFileSystemManagerTest {
      * @throws FileSystemException
      */
     @Test
-    public void test_close() throws FileSystemException {
+    public void testClose() throws FileSystemException {
         try (FileSystemManager fileSystemManager = new 
StandardFileSystemManager()) {
             VFS.setManager(fileSystemManager);
             VFS.setManager(null);
diff --git 
a/commons-vfs2/src/test/java/org/apache/commons/vfs2/provider/res/ResSchemeTest.java
 
b/commons-vfs2/src/test/java/org/apache/commons/vfs2/provider/res/ResSchemeTest.java
index 5118c20c..cf9ab5b0 100644
--- 
a/commons-vfs2/src/test/java/org/apache/commons/vfs2/provider/res/ResSchemeTest.java
+++ 
b/commons-vfs2/src/test/java/org/apache/commons/vfs2/provider/res/ResSchemeTest.java
@@ -29,73 +29,73 @@ import org.junit.jupiter.api.Test;
 public class ResSchemeTest {
 
     @Test
-    public void test_resolveFile_String() throws FileSystemException {
+    public void testResolveFileString() throws FileSystemException {
         
assertTrue(VFS.getManager().resolveFile("res:test.properties").exists());
     }
 
     @Test
-    public void test_resolveFile_String_S() throws FileSystemException {
+    public void testResolveFileStringS() throws FileSystemException {
         
assertTrue(VFS.getManager().resolveFile("res:/test.properties").exists());
     }
 
     @Test
-    public void test_resolveFile_String_SS() throws FileSystemException {
+    public void testResolveFileStringSS() throws FileSystemException {
         
assertTrue(VFS.getManager().resolveFile("res://test.properties").exists());
     }
 
     @Test
-    public void test_resolveFile_String_SSS() throws FileSystemException {
+    public void testResolveFileStringSSS() throws FileSystemException {
         
assertTrue(VFS.getManager().resolveFile("res://test.properties").exists());
     }
 
     @Test
-    public void test_resolveFile_String_SSSnull() {
+    public void testResolveFileStringSSSnull() {
         // Resulting path is empty
         assertThrows(FileSystemException.class, () -> 
VFS.getManager().resolveFile("res:///").exists());
     }
 
     @Test
-    public void test_resolveFile_URI() throws FileSystemException, 
URISyntaxException {
+    public void testResolveFileURI() throws FileSystemException, 
URISyntaxException {
         assertTrue(VFS.getManager().resolveFile(new 
URI("res:test.properties")).exists());
     }
 
     @Test
-    public void test_resolveFile_URI_S() throws FileSystemException, 
URISyntaxException {
+    public void testResolveFileURIS() throws FileSystemException, 
URISyntaxException {
         assertTrue(VFS.getManager().resolveFile(new 
URI("res:/test.properties")).exists());
     }
 
     @Test
-    public void test_resolveFile_URI_SS() throws FileSystemException, 
URISyntaxException {
+    public void testResolveFileURISS() throws FileSystemException, 
URISyntaxException {
         assertTrue(VFS.getManager().resolveFile(new 
URI("res://test.properties")).exists());
     }
 
     @Test
-    public void test_resolveFile_URI_SSS() throws FileSystemException, 
URISyntaxException {
+    public void testResolveFileURISSS() throws FileSystemException, 
URISyntaxException {
         assertTrue(VFS.getManager().resolveFile(new 
URI("res://test.properties")).exists());
     }
 
     @Test
-    public void test_resolveURI_String() throws FileSystemException {
+    public void testResolveURIString() throws FileSystemException {
         
assertTrue(VFS.getManager().resolveURI("res:test.properties").isFile());
     }
 
     @Test
-    public void test_resolveURI_String_S() throws FileSystemException {
+    public void testResolveURIStringS() throws FileSystemException {
         
assertTrue(VFS.getManager().resolveURI("res:/test.properties").isFile());
     }
 
     @Test
-    public void test_resolveURI_String_SS() throws FileSystemException {
+    public void testResolveURIStringSS() throws FileSystemException {
         
assertTrue(VFS.getManager().resolveURI("res://test.properties").isFile());
     }
 
     @Test
-    public void test_resolveURI_String_SSS() throws FileSystemException {
+    public void testResolveURIStringSSS() throws FileSystemException {
         
assertTrue(VFS.getManager().resolveURI("res:///test.properties").isFile());
     }
 
     @Test
-    public void test_resolveURI_String_SSSnull() {
+    public void testResolveURIStringSSSnull() {
         // Resulting path is empty
         assertThrows(FileSystemException.class, () -> 
VFS.getManager().resolveURI("res:///").isFile());
     }
diff --git 
a/commons-vfs2/src/test/java/org/apache/commons/vfs2/provider/url/UrlFileNameParserTest.java
 
b/commons-vfs2/src/test/java/org/apache/commons/vfs2/provider/url/UrlFileNameParserTest.java
index fba2b0d5..204cce3f 100644
--- 
a/commons-vfs2/src/test/java/org/apache/commons/vfs2/provider/url/UrlFileNameParserTest.java
+++ 
b/commons-vfs2/src/test/java/org/apache/commons/vfs2/provider/url/UrlFileNameParserTest.java
@@ -35,17 +35,17 @@ public class UrlFileNameParserTest {
     }
 
     @Test
-    public void testJira739_scheme_file() throws Exception {
+    public void testJira739SchemeFile() throws Exception {
         testJira739("file:///");
     }
 
     @Test
-    public void testJira739_scheme_maprfs() throws Exception {
+    public void testJira739SchemeMaprfs() throws Exception {
         testJira739("maprfs:///");
     }
 
     @Test
-    public void testJira739_scheme_ram() throws Exception {
+    public void testJira739SchemeRam() throws Exception {
         testJira739("ram:///");
     }
 
diff --git 
a/commons-vfs2/src/test/java/org/apache/commons/vfs2/provider/zip/Jira733Test.java
 
b/commons-vfs2/src/test/java/org/apache/commons/vfs2/provider/zip/Jira733Test.java
index a9d7fbab..f426ad33 100644
--- 
a/commons-vfs2/src/test/java/org/apache/commons/vfs2/provider/zip/Jira733Test.java
+++ 
b/commons-vfs2/src/test/java/org/apache/commons/vfs2/provider/zip/Jira733Test.java
@@ -69,12 +69,12 @@ public class Jira733Test {
     }
 
     @Test
-    public void testZipParentLayer_exists() throws Exception {
+    public void testZipParentLayerExists() throws Exception {
         testZipParentLayer(FileObject::exists);
     }
 
     @Test
-    public void testZipParentLayer_exists_getContents() throws Exception {
+    public void testZipParentLayerExistsGetContents() throws Exception {
         testZipParentLayer(fileObject -> {
             fileObject.exists();
             fileObject.getContent();
@@ -82,57 +82,57 @@ public class Jira733Test {
     }
 
     @Test
-    public void testZipParentLayer_getChildren() throws Exception {
+    public void testZipParentLayerGetChildren() throws Exception {
         testZipParentLayer(fileObject -> fileObject.getParent().getChildren());
     }
 
     @Test
-    public void testZipParentLayer_getContents() throws Exception {
+    public void testZipParentLayerGetContents() throws Exception {
         testZipParentLayer(FileObject::getContent);
     }
 
     @Test
-    public void testZipParentLayer_getType() throws Exception {
+    public void testZipParentLayerGetType() throws Exception {
         testZipParentLayer(FileObject::getType);
     }
 
     @Test
-    public void testZipParentLayer_isAttached() throws Exception {
+    public void testZipParentLayerIsAttached() throws Exception {
         testZipParentLayer(FileObject::isAttached);
     }
 
     @Test
-    public void testZipParentLayer_isContentOpen() throws Exception {
+    public void testZipParentLayerIsContentOpen() throws Exception {
         testZipParentLayer(FileObject::isContentOpen);
     }
 
     @Test
-    public void testZipParentLayer_isExecutable() throws Exception {
+    public void testZipParentLayerIsExecutable() throws Exception {
         testZipParentLayer(FileObject::isExecutable);
     }
 
     @Test
-    public void testZipParentLayer_isFile() throws Exception {
+    public void testZipParentLayerIsFile() throws Exception {
         testZipParentLayer(FileObject::isFile);
     }
 
     @Test
-    public void testZipParentLayer_isFolder() throws Exception {
+    public void testZipParentLayerIsFolder() throws Exception {
         testZipParentLayer(FileObject::isFolder);
     }
 
     @Test
-    public void testZipParentLayer_isHidden() throws Exception {
+    public void testZipParentLayerIsHidden() throws Exception {
         testZipParentLayer(FileObject::isHidden);
     }
 
     @Test
-    public void testZipParentLayer_isReadable() throws Exception {
+    public void testZipParentLayerIsReadable() throws Exception {
         testZipParentLayer(FileObject::isReadable);
     }
 
     @Test
-    public void testZipParentLayer_isWriteable() throws Exception {
+    public void testZipParentLayerIsWriteable() throws Exception {
         testZipParentLayer(FileObject::isWriteable);
     }
 
diff --git 
a/commons-vfs2/src/test/java/org/apache/commons/vfs2/util/FileObjectUtilsTest.java
 
b/commons-vfs2/src/test/java/org/apache/commons/vfs2/util/FileObjectUtilsTest.java
index a026df18..645c9d83 100644
--- 
a/commons-vfs2/src/test/java/org/apache/commons/vfs2/util/FileObjectUtilsTest.java
+++ 
b/commons-vfs2/src/test/java/org/apache/commons/vfs2/util/FileObjectUtilsTest.java
@@ -51,7 +51,7 @@ public class FileObjectUtilsTest {
     }
 
     @Test
-    public void testgetContentAsString_Charset() throws IOException {
+    public void testgetContentAsStringCharset() throws IOException {
         assertEquals("This is a test file.",
             FileObjectUtils.getContentAsString(
                 VFS.getManager().toFileObject(new 
File("src/test/resources/test-data/read-tests/file1.txt")),
@@ -59,7 +59,7 @@ public class FileObjectUtilsTest {
     }
 
     @Test
-    public void testgetContentAsString_CharsetNull() throws IOException {
+    public void testgetContentAsStringCharsetNull() throws IOException {
         assertEquals("This is a test file.",
             FileObjectUtils.getContentAsString(
                 VFS.getManager().toFileObject(new 
File("src/test/resources/test-data/read-tests/file1.txt")),
@@ -67,13 +67,13 @@ public class FileObjectUtilsTest {
     }
 
     @Test
-    public void testgetContentAsString_String() throws IOException {
+    public void testgetContentAsStringString() throws IOException {
         assertEquals("This is a test file.", 
FileObjectUtils.getContentAsString(
             VFS.getManager().toFileObject(new 
File("src/test/resources/test-data/read-tests/file1.txt")), "UTF-8"));
     }
 
     @Test
-    public void testgetContentAsString_StringNull() throws IOException {
+    public void testgetContentAsStringStringNull() throws IOException {
         assertEquals("This is a test file.",
             FileObjectUtils.getContentAsString(
                 VFS.getManager().toFileObject(new 
File("src/test/resources/test-data/read-tests/file1.txt")),
diff --git 
a/commons-vfs2/src/test/java/org/apache/commons/vfs2/util/RandomAccessModeTest.java
 
b/commons-vfs2/src/test/java/org/apache/commons/vfs2/util/RandomAccessModeTest.java
index 862f50e2..fecc5573 100644
--- 
a/commons-vfs2/src/test/java/org/apache/commons/vfs2/util/RandomAccessModeTest.java
+++ 
b/commons-vfs2/src/test/java/org/apache/commons/vfs2/util/RandomAccessModeTest.java
@@ -32,7 +32,7 @@ import org.junit.jupiter.api.Test;
 public class RandomAccessModeTest {
 
     @Test
-    public void test_fromAccessMode() {
+    public void testFromAccessMode() {
         assertEquals(RandomAccessMode.READ, 
RandomAccessMode.from(AccessMode.READ));
         assertEquals(RandomAccessMode.READ, 
RandomAccessMode.from(AccessMode.READ, AccessMode.READ));
         assertEquals(RandomAccessMode.READ, 
RandomAccessMode.from(AccessMode.READ, AccessMode.READ, AccessMode.EXECUTE));

Reply via email to