garydgregory commented on code in PR #300:
URL: https://github.com/apache/commons-vfs/pull/300#discussion_r976573836


##########
commons-vfs2/src/test/java/org/apache/commons/vfs2/provider/http/HttpProviderTestCase.java:
##########
@@ -212,4 +215,36 @@ public void testResolveFolderSlashYesRedirectOn() throws 
FileSystemException {
         testResolveFolderSlash(ConnectionUri + "/read-tests/", true);
     }
 
+    @Test
+    public void testHttpFileSystemFreeUnusedResources() throws Exception {
+        try (StandardFileSystemManager fileSystemManager = new 
StandardFileSystemManager()) {
+            
fileSystemManager.setConfiguration(StandardFileSystemManager.class.getResource("providers.xml"));
+            // use WeakRef
+            fileSystemManager.setFilesCache(new WeakRefFilesCache());
+            fileSystemManager.init();
+
+            String path = 
"http://www.w3schools.com/webservices/tempconvert.asmx?action=WSDL";;
+            AbstractFileSystem http4FileSystem = getFile(fileSystemManager, 
path);

Review Comment:
   Didn't you mean httpFileSystem since we are testing HttpFileSystem?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to