You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jmeter.apache.org by se...@apache.org on 2014/03/15 12:07:37 UTC

svn commit: r1577829 - /jmeter/trunk/test/src/org/apache/jmeter/protocol/http/sampler/PostWriterTest.java

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));
     }
 
     /**