hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1571513 - /httpcomponents/httpclient/branches/4.3.x/httpclient/src/test/java/org/apache/http/client/protocol/TestRequestAuthCache.java
Date Tue, 25 Feb 2014 01:23:07 GMT
Author: sebb
Date: Tue Feb 25 01:23:06 2014
New Revision: 1571513

URL: http://svn.apache.org/r1571513
Log:
Direct access to static constants

Modified:
    httpcomponents/httpclient/branches/4.3.x/httpclient/src/test/java/org/apache/http/client/protocol/TestRequestAuthCache.java

Modified: httpcomponents/httpclient/branches/4.3.x/httpclient/src/test/java/org/apache/http/client/protocol/TestRequestAuthCache.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient/branches/4.3.x/httpclient/src/test/java/org/apache/http/client/protocol/TestRequestAuthCache.java?rev=1571513&r1=1571512&r2=1571513&view=diff
==============================================================================
--- httpcomponents/httpclient/branches/4.3.x/httpclient/src/test/java/org/apache/http/client/protocol/TestRequestAuthCache.java
(original)
+++ httpcomponents/httpclient/branches/4.3.x/httpclient/src/test/java/org/apache/http/client/protocol/TestRequestAuthCache.java
Tue Feb 25 01:23:06 2014
@@ -40,6 +40,7 @@ import org.apache.http.impl.auth.BasicSc
 import org.apache.http.impl.client.BasicAuthCache;
 import org.apache.http.impl.client.BasicCredentialsProvider;
 import org.apache.http.message.BasicHttpRequest;
+import org.apache.http.protocol.HttpCoreContext;
 import org.junit.Assert;
 import org.junit.Before;
 import org.junit.Test;
@@ -98,7 +99,7 @@ public class TestRequestAuthCache {
 
         final HttpClientContext context = HttpClientContext.create();
         context.setAttribute(HttpClientContext.CREDS_PROVIDER, this.credProvider);
-        context.setAttribute(HttpClientContext.HTTP_TARGET_HOST, this.target);
+        context.setAttribute(HttpCoreContext.HTTP_TARGET_HOST, this.target);
         context.setAttribute(HttpClientContext.HTTP_ROUTE, new HttpRoute(this.target, null,
this.proxy, false));
         context.setAttribute(HttpClientContext.TARGET_AUTH_STATE, this.targetState);
         context.setAttribute(HttpClientContext.PROXY_AUTH_STATE, this.proxyState);
@@ -123,7 +124,7 @@ public class TestRequestAuthCache {
 
         final HttpClientContext context = HttpClientContext.create();
         context.setAttribute(HttpClientContext.CREDS_PROVIDER, null);
-        context.setAttribute(HttpClientContext.HTTP_TARGET_HOST, this.target);
+        context.setAttribute(HttpCoreContext.HTTP_TARGET_HOST, this.target);
         context.setAttribute(HttpClientContext.HTTP_ROUTE, new HttpRoute(this.target, null,
this.proxy, false));
         context.setAttribute(HttpClientContext.TARGET_AUTH_STATE, this.targetState);
         context.setAttribute(HttpClientContext.PROXY_AUTH_STATE, this.proxyState);
@@ -148,7 +149,7 @@ public class TestRequestAuthCache {
 
         final HttpClientContext context = HttpClientContext.create();
         context.setAttribute(HttpClientContext.CREDS_PROVIDER, this.credProvider);
-        context.setAttribute(HttpClientContext.HTTP_TARGET_HOST, this.target);
+        context.setAttribute(HttpCoreContext.HTTP_TARGET_HOST, this.target);
         context.setAttribute(HttpClientContext.HTTP_ROUTE, new HttpRoute(this.target, null,
this.proxy, false));
         context.setAttribute(HttpClientContext.TARGET_AUTH_STATE, this.targetState);
         context.setAttribute(HttpClientContext.PROXY_AUTH_STATE, this.proxyState);
@@ -168,7 +169,7 @@ public class TestRequestAuthCache {
 
         final HttpClientContext context = HttpClientContext.create();
         context.setAttribute(HttpClientContext.CREDS_PROVIDER, this.credProvider);
-        context.setAttribute(HttpClientContext.HTTP_TARGET_HOST, this.target);
+        context.setAttribute(HttpCoreContext.HTTP_TARGET_HOST, this.target);
         context.setAttribute(HttpClientContext.HTTP_ROUTE, new HttpRoute(this.target, null,
this.proxy, false));
         context.setAttribute(HttpClientContext.TARGET_AUTH_STATE, this.targetState);
         context.setAttribute(HttpClientContext.PROXY_AUTH_STATE, this.proxyState);
@@ -192,7 +193,7 @@ public class TestRequestAuthCache {
 
         final HttpClientContext context = HttpClientContext.create();
         context.setAttribute(HttpClientContext.CREDS_PROVIDER, this.credProvider);
-        context.setAttribute(HttpClientContext.HTTP_TARGET_HOST, this.target);
+        context.setAttribute(HttpCoreContext.HTTP_TARGET_HOST, this.target);
         context.setAttribute(HttpClientContext.HTTP_ROUTE, new HttpRoute(this.target, null,
this.proxy, false));
         context.setAttribute(HttpClientContext.TARGET_AUTH_STATE, this.targetState);
         context.setAttribute(HttpClientContext.PROXY_AUTH_STATE, this.proxyState);
@@ -217,7 +218,7 @@ public class TestRequestAuthCache {
 
         final HttpClientContext context = HttpClientContext.create();
         context.setAttribute(HttpClientContext.CREDS_PROVIDER, this.credProvider);
-        context.setAttribute(HttpClientContext.HTTP_TARGET_HOST, this.target);
+        context.setAttribute(HttpCoreContext.HTTP_TARGET_HOST, this.target);
         context.setAttribute(HttpClientContext.HTTP_ROUTE, new HttpRoute(this.target, null,
this.proxy, false));
         context.setAttribute(HttpClientContext.TARGET_AUTH_STATE, this.targetState);
         context.setAttribute(HttpClientContext.PROXY_AUTH_STATE, this.proxyState);



Mime
View raw message