You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by jo...@apache.org on 2013/03/04 15:05:51 UTC

svn commit: r1452312 - /commons/proper/vfs/trunk/core/src/test/java/org/apache/commons/vfs2/provider/ftp/test/FtpProviderTestCase.java

Author: joehni
Date: Mon Mar  4 14:05:51 2013
New Revision: 1452312

URL: http://svn.apache.org/r1452312
Log:
Avoid logged exception disconnecting the manager.

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=1452312&r1=1452311&r2=1452312&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 Mon Mar  4 14:05:51 2013
@@ -137,8 +137,15 @@ public class FtpProviderTestCase extends
             @Override
             protected void tearDown() throws Exception
             {
-                tearDownClass();
-                super.tearDown();
+                try {
+                    // This will report running threads of the FTP server.
+                    // However, shutting down the FTP server first will always
+                    // report an exception closing the manager, because the
+                    // server is already down
+                    super.tearDown();
+                } finally {
+                    tearDownClass();
+                }
             }
         };
     }