commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1339176 - /commons/proper/vfs/trunk/core/src/test/java/org/apache/commons/vfs2/provider/ftp/test/FtpProviderTestCase.java
Date Wed, 16 May 2012 14:09:48 GMT
Author: ggregory
Date: Wed May 16 14:09:47 2012
New Revision: 1339176

URL: http://svn.apache.org/viewvc?rev=1339176&view=rev
Log:
Refactor calls to FtpFileSystemConfigBuilder.getInstance() into a lvar.

Modified:
    commons/proper/vfs/trunk/core/src/test/java/org/apache/commons/vfs2/provider/ftp/test/FtpProviderTestCase.java

Modified: commons/proper/vfs/trunk/core/src/test/java/org/apache/commons/vfs2/provider/ftp/test/FtpProviderTestCase.java
URL: http://svn.apache.org/viewvc/commons/proper/vfs/trunk/core/src/test/java/org/apache/commons/vfs2/provider/ftp/test/FtpProviderTestCase.java?rev=1339176&r1=1339175&r2=1339176&view=diff
==============================================================================
--- commons/proper/vfs/trunk/core/src/test/java/org/apache/commons/vfs2/provider/ftp/test/FtpProviderTestCase.java
(original)
+++ commons/proper/vfs/trunk/core/src/test/java/org/apache/commons/vfs2/provider/ftp/test/FtpProviderTestCase.java
Wed May 16 14:09:47 2012
@@ -168,10 +168,11 @@ public class FtpProviderTestCase extends
             uri = ConnectionUri;
         }
         FileSystemOptions opts = new FileSystemOptions();
-        FtpFileSystemConfigBuilder.getInstance().setPassiveMode(opts, true);
+        final FtpFileSystemConfigBuilder builder = FtpFileSystemConfigBuilder.getInstance();
+        builder.setPassiveMode(opts, true);
         // FtpFileType.BINARY is the default
-        FtpFileSystemConfigBuilder.getInstance().setFileType(opts, FtpFileType.BINARY);
-        FtpFileSystemConfigBuilder.getInstance().setConnectTimeout(opts, 10000);
+        builder.setFileType(opts, FtpFileType.BINARY);
+        builder.setConnectTimeout(opts, 10000);
         return manager.resolveFile(uri, opts);
     }
 



Mime
View raw message