incubator-ftpserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From n..@apache.org
Subject svn commit: r476286 - in /incubator/ftpserver/trunk/core/src: java/org/apache/ftpserver/util/BaseProperties.java test/org/apache/ftpserver/clienttests/StoreTest.java
Date Fri, 17 Nov 2006 19:58:42 GMT
Author: ngn
Date: Fri Nov 17 11:58:41 2006
New Revision: 476286

URL: http://svn.apache.org/viewvc?view=rev&rev=476286
Log:
Fixed broken tests

Modified:
    incubator/ftpserver/trunk/core/src/java/org/apache/ftpserver/util/BaseProperties.java
    incubator/ftpserver/trunk/core/src/test/org/apache/ftpserver/clienttests/StoreTest.java

Modified: incubator/ftpserver/trunk/core/src/java/org/apache/ftpserver/util/BaseProperties.java
URL: http://svn.apache.org/viewvc/incubator/ftpserver/trunk/core/src/java/org/apache/ftpserver/util/BaseProperties.java?view=diff&rev=476286&r1=476285&r2=476286
==============================================================================
--- incubator/ftpserver/trunk/core/src/java/org/apache/ftpserver/util/BaseProperties.java
(original)
+++ incubator/ftpserver/trunk/core/src/java/org/apache/ftpserver/util/BaseProperties.java
Fri Nov 17 11:58:41 2006
@@ -66,9 +66,8 @@
         try {
             fis = new FileInputStream(fl);
             load(fis);
-        } catch(IOException e) {
+        } finally {
             IoUtils.close(fis);
-            throw e;
         }
     }
     

Modified: incubator/ftpserver/trunk/core/src/test/org/apache/ftpserver/clienttests/StoreTest.java
URL: http://svn.apache.org/viewvc/incubator/ftpserver/trunk/core/src/test/org/apache/ftpserver/clienttests/StoreTest.java?view=diff&rev=476286&r1=476285&r2=476286
==============================================================================
--- incubator/ftpserver/trunk/core/src/test/org/apache/ftpserver/clienttests/StoreTest.java
(original)
+++ incubator/ftpserver/trunk/core/src/test/org/apache/ftpserver/clienttests/StoreTest.java
Fri Nov 17 11:58:41 2006
@@ -161,10 +161,6 @@
         
         doAssertOfUniqueFile(client, ROOT_DIR);
     }
-    
-    public void testStoreUniqueNoFileName() throws Exception {
-        assertEquals(501, client.sendCommand("STOU"));
-    }
 
     public void testStoreUniqueWithDirectoryWithTrailingSlash() throws Exception {
         TEST_DIR.mkdirs();



Mime
View raw message