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

commit 061be8ef05a6da482c505194dbe92146a8df5ed9
Author: Gary Gregory <[email protected]>
AuthorDate: Thu Feb 11 08:45:42 2021 -0500

    Sort members.
---
 .../vfs2/provider/http5/Http5ProviderTestCase.java | 56 +++++++++++-----------
 1 file changed, 28 insertions(+), 28 deletions(-)

diff --git 
a/commons-vfs2/src/test/java/org/apache/commons/vfs2/provider/http5/Http5ProviderTestCase.java
 
b/commons-vfs2/src/test/java/org/apache/commons/vfs2/provider/http5/Http5ProviderTestCase.java
index 4313cb7..e58a6f7 100644
--- 
a/commons-vfs2/src/test/java/org/apache/commons/vfs2/provider/http5/Http5ProviderTestCase.java
+++ 
b/commons-vfs2/src/test/java/org/apache/commons/vfs2/provider/http5/Http5ProviderTestCase.java
@@ -124,6 +124,13 @@ public class Http5ProviderTestCase extends 
AbstractProviderTestConfig {
         return manager.resolveFile(uri);
     }
 
+    // Test no longer passing 2016/04/28
+    public void ignoreTestHttp405() throws FileSystemException {
+        final FileObject fileObject = VFS.getManager()
+                
.resolveFile("http5://www.w3schools.com/webservices/tempconvert.asmx?action=WSDL");
+        assert !fileObject.getContent().isEmpty();
+    }
+
     /**
      * Prepares the file system manager.
      */
@@ -134,6 +141,27 @@ public class Http5ProviderTestCase extends 
AbstractProviderTestConfig {
         }
     }
 
+    /** Ensure VFS-453 options are present. */
+    public void testHttpTimeoutConfig() {
+        final FileSystemOptions opts = new FileSystemOptions();
+        final Http5FileSystemConfigBuilder builder = 
Http5FileSystemConfigBuilder.getInstance();
+
+        // ensure defaults are 0
+        assertEquals(0, builder.getConnectionTimeout(opts));
+        assertEquals(0, builder.getSoTimeout(opts));
+        assertEquals("Jakarta-Commons-VFS", builder.getUserAgent(opts));
+
+        builder.setConnectionTimeout(opts, 60000);
+        builder.setSoTimeout(opts, 60000);
+        builder.setUserAgent(opts, "foo/bar");
+
+        // ensure changes are visible
+        assertEquals(60000, builder.getConnectionTimeout(opts));
+        assertEquals(60000, builder.getSoTimeout(opts));
+        assertEquals("foo/bar", builder.getUserAgent(opts));
+
+    }
+
     private void testResloveFolderSlash(final String uri, final boolean 
followRedirect) throws FileSystemException {
         VFS.getManager().getFilesCache().close();
         final FileSystemOptions opts = new FileSystemOptions();
@@ -161,32 +189,4 @@ public class Http5ProviderTestCase extends 
AbstractProviderTestConfig {
     public void testResloveFolderSlashYesRedirectOn() throws 
FileSystemException {
         testResloveFolderSlash(ConnectionUri + "/read-tests/", true);
     }
-
-    // Test no longer passing 2016/04/28
-    public void ignoreTestHttp405() throws FileSystemException {
-        final FileObject fileObject = VFS.getManager()
-                
.resolveFile("http5://www.w3schools.com/webservices/tempconvert.asmx?action=WSDL");
-        assert !fileObject.getContent().isEmpty();
-    }
-
-    /** Ensure VFS-453 options are present. */
-    public void testHttpTimeoutConfig() {
-        final FileSystemOptions opts = new FileSystemOptions();
-        final Http5FileSystemConfigBuilder builder = 
Http5FileSystemConfigBuilder.getInstance();
-
-        // ensure defaults are 0
-        assertEquals(0, builder.getConnectionTimeout(opts));
-        assertEquals(0, builder.getSoTimeout(opts));
-        assertEquals("Jakarta-Commons-VFS", builder.getUserAgent(opts));
-
-        builder.setConnectionTimeout(opts, 60000);
-        builder.setSoTimeout(opts, 60000);
-        builder.setUserAgent(opts, "foo/bar");
-
-        // ensure changes are visible
-        assertEquals(60000, builder.getConnectionTimeout(opts));
-        assertEquals(60000, builder.getSoTimeout(opts));
-        assertEquals("foo/bar", builder.getUserAgent(opts));
-
-    }
 }

Reply via email to