Bumping versions
This commit is contained in:
@@ -34,9 +34,11 @@ class ProxyHostCredentialsProviderTest {
|
||||
ProxyHostProperties withoutCredentials = proxyHost("bad.proxy", 666, null, null);
|
||||
ProxyHostProperties goodProxy = proxyHost("good.proxy", 888, "user", "P@s$W0rd!");
|
||||
|
||||
ProxyHostCredentialsProvider provider = new ProxyHostCredentialsProvider(withoutConnection, withoutCredentials, goodProxy);
|
||||
ProxyHostCredentialsProvider provider = new ProxyHostCredentialsProvider(withoutConnection, withoutCredentials,
|
||||
goodProxy);
|
||||
|
||||
Map<AuthScope, Credentials> credentials = (Map<AuthScope, Credentials>) ReflectionTestUtils.getField(provider, "credMap");
|
||||
Map<AuthScope, Credentials> credentials = (Map<AuthScope, Credentials>) ReflectionTestUtils.getField(provider,
|
||||
"credMap");
|
||||
assertThat(credentials).hasSize(1);
|
||||
Map.Entry<AuthScope, Credentials> entry = credentials.entrySet().iterator().next();
|
||||
assertThat(entry.getKey().getHost()).isEqualTo("good.proxy");
|
||||
|
||||
@@ -79,7 +79,8 @@ class SchemeBasedRoutePlannerTest {
|
||||
|
||||
@Test
|
||||
void determineProxy_should_return_null_when_provided_proxies_are_incomplete() {
|
||||
SchemeBasedRoutePlanner planner = new SchemeBasedRoutePlanner(buildProxyProperties("", 777), buildProxyProperties("host", 0));
|
||||
SchemeBasedRoutePlanner planner = new SchemeBasedRoutePlanner(buildProxyProperties("", 777),
|
||||
buildProxyProperties("host", 0));
|
||||
|
||||
final HttpHost result = planner.determineProxy(target("https"), anyRequest(), anyContext());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user