You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jmeter-dev@jakarta.apache.org by se...@apache.org on 2009/11/20 16:32:40 UTC

svn commit: r882605 - in /jakarta/jmeter/trunk/test/src/org/apache: jmeter/protocol/http/config/ jmeter/protocol/http/proxy/ jmeter/protocol/http/sampler/ jorphan/

Author: sebb
Date: Fri Nov 20 15:32:35 2009
New Revision: 882605

URL: http://svn.apache.org/viewvc?rev=882605&view=rev
Log:
Calls to deprecated methods in test code are deliberate

Modified:
    jakarta/jmeter/trunk/test/src/org/apache/jmeter/protocol/http/config/MultipartUrlConfigTest.java
    jakarta/jmeter/trunk/test/src/org/apache/jmeter/protocol/http/proxy/TestHttpRequestHdr.java
    jakarta/jmeter/trunk/test/src/org/apache/jmeter/protocol/http/sampler/PostWriterTest.java
    jakarta/jmeter/trunk/test/src/org/apache/jmeter/protocol/http/sampler/TestHTTPSamplers.java
    jakarta/jmeter/trunk/test/src/org/apache/jmeter/protocol/http/sampler/TestHTTPSamplersAgainstHttpMirrorServer.java
    jakarta/jmeter/trunk/test/src/org/apache/jorphan/TestFunctorUsers.java

Modified: jakarta/jmeter/trunk/test/src/org/apache/jmeter/protocol/http/config/MultipartUrlConfigTest.java
URL: http://svn.apache.org/viewvc/jakarta/jmeter/trunk/test/src/org/apache/jmeter/protocol/http/config/MultipartUrlConfigTest.java?rev=882605&r1=882604&r2=882605&view=diff
==============================================================================
--- jakarta/jmeter/trunk/test/src/org/apache/jmeter/protocol/http/config/MultipartUrlConfigTest.java (original)
+++ jakarta/jmeter/trunk/test/src/org/apache/jmeter/protocol/http/config/MultipartUrlConfigTest.java Fri Nov 20 15:32:35 2009
@@ -31,6 +31,7 @@
         super(name);
     }
 
+    @SuppressWarnings("deprecation")
     public void testConstructors() {
         MultipartUrlConfig muc = new MultipartUrlConfig();
         assertEquals(0, muc.getArguments().getArgumentCount());

Modified: jakarta/jmeter/trunk/test/src/org/apache/jmeter/protocol/http/proxy/TestHttpRequestHdr.java
URL: http://svn.apache.org/viewvc/jakarta/jmeter/trunk/test/src/org/apache/jmeter/protocol/http/proxy/TestHttpRequestHdr.java?rev=882605&r1=882604&r2=882605&view=diff
==============================================================================
--- jakarta/jmeter/trunk/test/src/org/apache/jmeter/protocol/http/proxy/TestHttpRequestHdr.java (original)
+++ jakarta/jmeter/trunk/test/src/org/apache/jmeter/protocol/http/proxy/TestHttpRequestHdr.java Fri Nov 20 15:32:35 2009
@@ -473,6 +473,7 @@
         assertEquals("value",header.getValue());
     }
 
+    @SuppressWarnings("deprecation")
     public void testPostMultipartFileUpload() throws Exception {
         String url = "http://localhost/matrix.html";
         // A HTTP POST request, multipart/form-data, simple values,

Modified: jakarta/jmeter/trunk/test/src/org/apache/jmeter/protocol/http/sampler/PostWriterTest.java
URL: http://svn.apache.org/viewvc/jakarta/jmeter/trunk/test/src/org/apache/jmeter/protocol/http/sampler/PostWriterTest.java?rev=882605&r1=882604&r2=882605&view=diff
==============================================================================
--- jakarta/jmeter/trunk/test/src/org/apache/jmeter/protocol/http/sampler/PostWriterTest.java (original)
+++ jakarta/jmeter/trunk/test/src/org/apache/jmeter/protocol/http/sampler/PostWriterTest.java Fri Nov 20 15:32:35 2009
@@ -588,6 +588,7 @@
      * 
      * @param httpSampler
      */
+    @SuppressWarnings("deprecation")
     private void setupFilepart(HTTPSampler httpSampler, String fileField, File file, String mimeType) {
         httpSampler.setFileField(fileField);
         if(file != null) {

Modified: jakarta/jmeter/trunk/test/src/org/apache/jmeter/protocol/http/sampler/TestHTTPSamplers.java
URL: http://svn.apache.org/viewvc/jakarta/jmeter/trunk/test/src/org/apache/jmeter/protocol/http/sampler/TestHTTPSamplers.java?rev=882605&r1=882604&r2=882605&view=diff
==============================================================================
--- jakarta/jmeter/trunk/test/src/org/apache/jmeter/protocol/http/sampler/TestHTTPSamplers.java (original)
+++ jakarta/jmeter/trunk/test/src/org/apache/jmeter/protocol/http/sampler/TestHTTPSamplers.java Fri Nov 20 15:32:35 2009
@@ -221,6 +221,7 @@
             assertEquals("http://www.apache.org/index.html", config.getUrl().toString());
         }
         
+        @SuppressWarnings("deprecation")
         public void testFileList(){
             HTTPSamplerBase config = new HTTPNullSampler();
             HTTPFileArg[] arg;
@@ -292,6 +293,7 @@
             assertEquals(2,arg.length);
      }
 
+    @SuppressWarnings("deprecation")
     public void testSetAndGetFileField() {
         HTTPSamplerBase sampler = new HTTPNullSampler();
         sampler.setFileField("param");
@@ -305,6 +307,7 @@
         assertEquals("param2", file.getParamName());
     }
 
+    @SuppressWarnings("deprecation")
     public void testSetAndGetFilename() {
         HTTPSamplerBase sampler = new HTTPNullSampler();
         sampler.setFilename("name");
@@ -318,6 +321,7 @@
         assertEquals("name2", file.getPath());
     }
 
+    @SuppressWarnings("deprecation")
     public void testSetAndGetMimetype() {
         HTTPSamplerBase sampler = new HTTPNullSampler();
         sampler.setMimetype("mime");

Modified: jakarta/jmeter/trunk/test/src/org/apache/jmeter/protocol/http/sampler/TestHTTPSamplersAgainstHttpMirrorServer.java
URL: http://svn.apache.org/viewvc/jakarta/jmeter/trunk/test/src/org/apache/jmeter/protocol/http/sampler/TestHTTPSamplersAgainstHttpMirrorServer.java?rev=882605&r1=882604&r2=882605&view=diff
==============================================================================
--- jakarta/jmeter/trunk/test/src/org/apache/jmeter/protocol/http/sampler/TestHTTPSamplersAgainstHttpMirrorServer.java (original)
+++ jakarta/jmeter/trunk/test/src/org/apache/jmeter/protocol/http/sampler/TestHTTPSamplersAgainstHttpMirrorServer.java Fri Nov 20 15:32:35 2009
@@ -739,7 +739,7 @@
         String dataSentToMirrorServer = new String(res.getResponseData(), contentEncoding);
         int posDividerHeadersAndBody = getPositionOfBody(dataSentToMirrorServer);
         String headersSent = null;
-        String bodySent = null;
+        String bodySent = "";
         if(posDividerHeadersAndBody >= 0) {
             headersSent = dataSentToMirrorServer.substring(0, posDividerHeadersAndBody);
             // Skip the blank line with crlf dividing headers and body
@@ -820,7 +820,7 @@
         String dataSentToMirrorServer = new String(res.getResponseData(), contentEncoding);
         int posDividerHeadersAndBody = getPositionOfBody(dataSentToMirrorServer);
         String headersSent = null;
-        String bodySent = null;
+        String bodySent = "";
         if(posDividerHeadersAndBody >= 0) {
             headersSent = dataSentToMirrorServer.substring(0, posDividerHeadersAndBody);
             // Skip the blank line with crlf dividing headers and body
@@ -853,7 +853,7 @@
         String dataSentToMirrorServer = new String(res.getResponseData(), EncoderCache.URL_ARGUMENT_ENCODING);
         int posDividerHeadersAndBody = getPositionOfBody(dataSentToMirrorServer);
         String headersSent = null;
-        String bodySent = null;
+        String bodySent = "";
         if(posDividerHeadersAndBody >= 0) {
             headersSent = dataSentToMirrorServer.substring(0, posDividerHeadersAndBody);
             // Skip the blank line with crlf dividing headers and body
@@ -902,7 +902,7 @@
         String dataSentToMirrorServer = new String(res.getResponseData(), EncoderCache.URL_ARGUMENT_ENCODING);
         int posDividerHeadersAndBody = getPositionOfBody(dataSentToMirrorServer);
         String headersSent = null;
-        String bodySent = null;
+        String bodySent = "";
         if(posDividerHeadersAndBody >= 0) {
             headersSent = dataSentToMirrorServer.substring(0, posDividerHeadersAndBody);
             // Skip the blank line with crlf dividing headers and body
@@ -1091,6 +1091,7 @@
      * 
      * @param httpSampler
      */
+    @SuppressWarnings("deprecation")
     private void setupFileUploadData(
             HTTPSamplerBase httpSampler,
             boolean isEncoded,

Modified: jakarta/jmeter/trunk/test/src/org/apache/jorphan/TestFunctorUsers.java
URL: http://svn.apache.org/viewvc/jakarta/jmeter/trunk/test/src/org/apache/jorphan/TestFunctorUsers.java?rev=882605&r1=882604&r2=882605&view=diff
==============================================================================
--- jakarta/jmeter/trunk/test/src/org/apache/jorphan/TestFunctorUsers.java (original)
+++ jakarta/jmeter/trunk/test/src/org/apache/jorphan/TestFunctorUsers.java Fri Nov 20 15:32:35 2009
@@ -37,6 +37,7 @@
         super(arg0);
     }
     
+    @SuppressWarnings("deprecation")
     public void testSummaryReport() throws Exception{
         assertTrue("SummaryReport Functor",SummaryReport.testFunctors());
     }
@@ -49,6 +50,7 @@
         assertTrue("StatGraphVisualizer Functor",StatGraphVisualizer.testFunctors());
     }
     
+    @SuppressWarnings("deprecation")
     public void testStatVisualizer() throws Exception{
         assertTrue("StatVisualizer Functor",StatVisualizer.testFunctors());
     }



---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org