jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1577829 - /jmeter/trunk/test/src/org/apache/jmeter/protocol/http/sampler/PostWriterTest.java
Date Sat, 15 Mar 2014 11:07:37 GMT
Author: sebb
Date: Sat Mar 15 11:07:37 2014
New Revision: 1577829

URL: http://svn.apache.org/r1577829
Log:
Use constant strings

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

Modified: jmeter/trunk/test/src/org/apache/jmeter/protocol/http/sampler/PostWriterTest.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/test/src/org/apache/jmeter/protocol/http/sampler/PostWriterTest.java?rev=1577829&r1=1577828&r2=1577829&view=diff
==============================================================================
--- jmeter/trunk/test/src/org/apache/jmeter/protocol/http/sampler/PostWriterTest.java (original)
+++ jmeter/trunk/test/src/org/apache/jmeter/protocol/http/sampler/PostWriterTest.java Sat
Mar 15 11:07:37 2014
@@ -875,15 +875,15 @@ public class PostWriterTest extends Test
     }
     
     private void checkContentTypeMultipart(HttpURLConnection conn, String boundaryString)
{
-        assertEquals("multipart/form-data; boundary=" + boundaryString, conn.getRequestProperty("Content-Type"));
+        assertEquals("multipart/form-data; boundary=" + boundaryString, conn.getRequestProperty(HTTPConstants.HEADER_CONTENT_TYPE));
     }
 
     private void checkContentTypeUrlEncoded(HttpURLConnection conn) {
-        assertEquals(HTTPConstants.APPLICATION_X_WWW_FORM_URLENCODED, conn.getRequestProperty("Content-Type"));
+        assertEquals(HTTPConstants.APPLICATION_X_WWW_FORM_URLENCODED, conn.getRequestProperty(HTTPConstants.HEADER_CONTENT_TYPE));
     }
 
     private void checkContentLength(HttpURLConnection conn, int length) {
-        assertEquals(Integer.toString(length), conn.getRequestProperty("Content-Length"));
+        assertEquals(Integer.toString(length), conn.getRequestProperty(HTTPConstants.HEADER_CONTENT_LENGTH));
     }
 
     /**



Mime
View raw message