jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pmoua...@apache.org
Subject svn commit: r1205613 - /jmeter/trunk/test/src/org/apache/jmeter/protocol/http/sampler/TestHTTPSamplersAgainstHttpMirrorServer.java
Date Wed, 23 Nov 2011 21:36:28 GMT
Author: pmouawad
Date: Wed Nov 23 21:36:27 2011
New Revision: 1205613

URL: http://svn.apache.org/viewvc?rev=1205613&view=rev
Log:
Added checks for File manipulations

Modified:
    jmeter/trunk/test/src/org/apache/jmeter/protocol/http/sampler/TestHTTPSamplersAgainstHttpMirrorServer.java

Modified: jmeter/trunk/test/src/org/apache/jmeter/protocol/http/sampler/TestHTTPSamplersAgainstHttpMirrorServer.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/test/src/org/apache/jmeter/protocol/http/sampler/TestHTTPSamplersAgainstHttpMirrorServer.java?rev=1205613&r1=1205612&r2=1205613&view=diff
==============================================================================
--- jmeter/trunk/test/src/org/apache/jmeter/protocol/http/sampler/TestHTTPSamplersAgainstHttpMirrorServer.java
(original)
+++ jmeter/trunk/test/src/org/apache/jmeter/protocol/http/sampler/TestHTTPSamplersAgainstHttpMirrorServer.java
Wed Nov 23 21:36:27 2011
@@ -97,7 +97,9 @@ public class TestHTTPSamplersAgainstHttp
                     httpServer.stopServer();
                     httpServer = null;
                     // delete temporay file
-                    temporaryFile.delete();
+                    if(!temporaryFile.delete()) {
+                    	fail("Could not delete file:"+temporaryFile.getAbsolutePath());
+                    }
             }
         };
         return setup;



Mime
View raw message