hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r899952 - /httpcomponents/httpcore/trunk/httpcore/src/test/java/org/apache/http/entity/TestFileEntity.java
Date Sat, 16 Jan 2010 13:56:49 GMT
Author: sebb
Date: Sat Jan 16 13:56:49 2010
New Revision: 899952

URL: http://svn.apache.org/viewvc?rev=899952&view=rev
Log:
Report if file deletion does not work

Modified:
    httpcomponents/httpcore/trunk/httpcore/src/test/java/org/apache/http/entity/TestFileEntity.java

Modified: httpcomponents/httpcore/trunk/httpcore/src/test/java/org/apache/http/entity/TestFileEntity.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpcore/trunk/httpcore/src/test/java/org/apache/http/entity/TestFileEntity.java?rev=899952&r1=899951&r2=899952&view=diff
==============================================================================
--- httpcomponents/httpcore/trunk/httpcore/src/test/java/org/apache/http/entity/TestFileEntity.java
(original)
+++ httpcomponents/httpcore/trunk/httpcore/src/test/java/org/apache/http/entity/TestFileEntity.java
Sat Jan 16 13:56:49 2010
@@ -65,7 +65,9 @@
         assertNotNull(httpentity.getContent());
         assertTrue(httpentity.isRepeatable());
         assertFalse(httpentity.isStreaming());        
-        tmpfile.delete();
+        if (!tmpfile.delete()){
+            System.out.println("Failed to delete: "+tmpfile);
+        }
     }
 
     public void testIllegalConstructor() throws Exception {
@@ -98,7 +100,9 @@
         for (int i = 0; i < 4; i++) {
             assertEquals(i, bytes[i]);
         }
-        tmpfile.delete();
+        if (!tmpfile.delete()){
+            System.out.println("Failed to delete: "+tmpfile);
+        }
 
         try {
             httpentity.writeTo(null);



Mime
View raw message