jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1572323 - /jmeter/trunk/test/src/org/apache/jmeter/protocol/http/control/TestCacheManager.java
Date Wed, 26 Feb 2014 22:53:48 GMT
Author: sebb
Date: Wed Feb 26 22:53:48 2014
New Revision: 1572323

URL: http://svn.apache.org/r1572323
Log:
Oops forgot to update test code

Modified:
    jmeter/trunk/test/src/org/apache/jmeter/protocol/http/control/TestCacheManager.java

Modified: jmeter/trunk/test/src/org/apache/jmeter/protocol/http/control/TestCacheManager.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/test/src/org/apache/jmeter/protocol/http/control/TestCacheManager.java?rev=1572323&r1=1572322&r2=1572323&view=diff
==============================================================================
--- jmeter/trunk/test/src/org/apache/jmeter/protocol/http/control/TestCacheManager.java (original)
+++ jmeter/trunk/test/src/org/apache/jmeter/protocol/http/control/TestCacheManager.java Wed
Feb 26 22:53:48 2014
@@ -39,6 +39,7 @@ import org.apache.commons.httpclient.met
 import org.apache.commons.httpclient.util.HttpURLConnection;
 import org.apache.jmeter.junit.JMeterTestCase;
 import org.apache.jmeter.protocol.http.control.CacheManager.CacheEntry;
+import org.apache.jmeter.protocol.http.sampler.HTTPSampleResult;
 import org.apache.jmeter.protocol.http.util.HTTPConstants;
 import org.apache.jmeter.samplers.SampleResult;
 
@@ -149,7 +150,7 @@ public class TestCacheManager extends JM
     private URLConnection urlConnection;
     private HttpMethod httpMethod;
     private HttpURLConnection httpUrlConnection;
-    private SampleResult sampleResultOK;
+    private HTTPSampleResult sampleResultOK;
 
     public TestCacheManager(String name) {
         super(name);
@@ -433,8 +434,8 @@ public class TestCacheManager extends JM
         assertEquals("Unexpected value for property " + property, expectedPropertyValue,
listOfPropertyValues.get(0));
     }
     
-    private SampleResult getSampleResultWithSpecifiedResponseCode(String code) {
-        SampleResult sampleResult = new SampleResult();
+    private HTTPSampleResult getSampleResultWithSpecifiedResponseCode(String code) {
+        HTTPSampleResult sampleResult = new HTTPSampleResult();
         sampleResult.setResponseCode(code);
         return sampleResult;
     }
@@ -452,12 +453,12 @@ public class TestCacheManager extends JM
     }
 
     private void saveDetailsWithHttpMethodAndSampleResultWithResponseCode(String responseCode)
throws Exception {
-        SampleResult sampleResult = getSampleResultWithSpecifiedResponseCode(responseCode);
+        HTTPSampleResult sampleResult = getSampleResultWithSpecifiedResponseCode(responseCode);
         this.cacheManager.saveDetails(this.httpMethod, sampleResult);
     }
 
     private void saveDetailsWithConnectionAndSampleResultWithResponseCode(String responseCode)
{
-        SampleResult sampleResult = getSampleResultWithSpecifiedResponseCode(responseCode);
+        HTTPSampleResult sampleResult = getSampleResultWithSpecifiedResponseCode(responseCode);
         this.cacheManager.saveDetails(this.urlConnection, sampleResult);
     }
 



Mime
View raw message