Bumping versions

This commit is contained in:
buildmaster
2022-05-18 00:29:46 +00:00
parent 8b2e7cbba7
commit 22749009d7
2 changed files with 6 additions and 3 deletions

View File

@@ -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");

View File

@@ -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());