jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pmoua...@apache.org
Subject svn commit: r1379853 - /jmeter/trunk/test/src/org/apache/jmeter/protocol/http/sampler/TestHTTPSamplersAgainstHttpMirrorServer.java
Date Sat, 01 Sep 2012 21:08:05 GMT
Author: pmouawad
Date: Sat Sep  1 21:08:05 2012
New Revision: 1379853

URL: http://svn.apache.org/viewvc?rev=1379853&view=rev
Log:
parse int

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=1379853&r1=1379852&r2=1379853&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
Sat Sep  1 21:08:05 2012
@@ -1085,7 +1085,7 @@ public class TestHTTPSamplersAgainstHttp
             String contentLengthValue = getSentRequestHeaderValue(headersSent, HTTPConstants.HEADER_CONTENT_LENGTH);
             int contentLength = -1;
             if(contentLengthValue != null) {
-                contentLength = new Integer(contentLengthValue).intValue();
+                contentLength = Integer.parseInt(contentLengthValue);
             }
             else {
                 fail("Did not receive any content-length header");



Mime
View raw message