hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j...@apache.org
Subject svn commit: r1053060 - /httpcomponents/httpclient/trunk/httpclient-cache/src/test/java/org/apache/http/impl/client/cache/TestCachingHttpClient.java
Date Mon, 27 Dec 2010 12:55:32 GMT
Author: jonm
Date: Mon Dec 27 12:55:32 2010
New Revision: 1053060

URL: http://svn.apache.org/viewvc?rev=1053060&view=rev
Log:
Fixed compiler warnings (unused imports, unused private methods).

Modified:
    httpcomponents/httpclient/trunk/httpclient-cache/src/test/java/org/apache/http/impl/client/cache/TestCachingHttpClient.java

Modified: httpcomponents/httpclient/trunk/httpclient-cache/src/test/java/org/apache/http/impl/client/cache/TestCachingHttpClient.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient/trunk/httpclient-cache/src/test/java/org/apache/http/impl/client/cache/TestCachingHttpClient.java?rev=1053060&r1=1053059&r2=1053060&view=diff
==============================================================================
--- httpcomponents/httpclient/trunk/httpclient-cache/src/test/java/org/apache/http/impl/client/cache/TestCachingHttpClient.java
(original)
+++ httpcomponents/httpclient/trunk/httpclient-cache/src/test/java/org/apache/http/impl/client/cache/TestCachingHttpClient.java
Mon Dec 27 12:55:32 2010
@@ -45,7 +45,6 @@ import org.apache.http.client.ClientProt
 import org.apache.http.client.HttpClient;
 import org.apache.http.client.ResponseHandler;
 import org.apache.http.client.cache.CacheResponseStatus;
-import org.apache.http.client.cache.HeaderConstants;
 import org.apache.http.client.cache.HttpCacheEntry;
 import org.apache.http.client.cache.HttpCacheStorage;
 import org.apache.http.client.methods.HttpGet;
@@ -1870,12 +1869,6 @@ public class TestCachingHttpClient {
                 (HttpCacheEntry)anyObject(), (Date)anyObject())).andReturn(b);
     }
 
-    private void conditionalVariantRequestBuilderReturns(Map<String,Variant> variantEntries,
HttpRequest validate)
-            throws Exception {
-        expect(mockConditionalRequestBuilder.buildConditionalRequestFromVariants(request,
variantEntries))
-            .andReturn(validate);
-    }
-
     private void conditionalRequestBuilderReturns(HttpRequest validate)
             throws Exception {
         expect(mockConditionalRequestBuilder
@@ -1905,13 +1898,6 @@ public class TestCachingHttpClient {
                 (HttpContext)anyObject())).andReturn(response);
     }
 
-    private void responsePolicyAllowsCaching(boolean allow) {
-        expect(
-                mockResponsePolicy.isResponseCacheable(
-                        (HttpRequest)anyObject(),
-                        (HttpResponse)anyObject())).andReturn(allow);
-    }
-
     private void cacheEntrySuitable(boolean suitable) {
         expect(
                 mockSuitabilityChecker.canCachedResponseBeUsed(
@@ -1933,10 +1919,6 @@ public class TestCachingHttpClient {
                 (HttpCacheEntry)anyObject())).andReturn(mockCachedResponse);
     }
 
-    private void flushCache() throws IOException {
-        mockCache.flushCacheEntriesFor(host, request);
-    }
-
     private void handleBackendResponseReturnsResponse(HttpRequest request, HttpResponse response)
             throws IOException {
         expect(
@@ -1948,12 +1930,6 @@ public class TestCachingHttpClient {
                         (HttpResponse)anyObject())).andReturn(response);
     }
 
-    private void responseProtocolValidationIsCalled() throws ClientProtocolException {
-        mockResponseProtocolCompliance.ensureProtocolCompliance(
-                (HttpRequest)anyObject(),
-                (HttpResponse)anyObject());
-    }
-
     private void requestProtocolValidationIsCalled() throws Exception {
         expect(
                 mockRequestProtocolCompliance.makeRequestCompliant(



Mime
View raw message