"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "httpclient/src/test/java/org/apache/http/client/config/TestRequestConfig.java" between
httpcomponents-client-4.5.8-src.tar.gz and httpcomponents-client-4.5.9-src.tar.gz

About: HttpComponents is an Apache project responsible for creating and maintaining a toolset of low level Java components focused on HTTP and associated protocols. Java sources.

TestRequestConfig.java  (httpcomponents-client-4.5.8-src):TestRequestConfig.java  (httpcomponents-client-4.5.9-src)
skipping to change at line 83 skipping to change at line 83
.setRedirectsEnabled(false) .setRedirectsEnabled(false)
.setRelativeRedirectsAllowed(false) .setRelativeRedirectsAllowed(false)
.setCircularRedirectsAllowed(true) .setCircularRedirectsAllowed(true)
.setMaxRedirects(100) .setMaxRedirects(100)
.setCookieSpec(CookieSpecs.STANDARD) .setCookieSpec(CookieSpecs.STANDARD)
.setLocalAddress(InetAddress.getLocalHost()) .setLocalAddress(InetAddress.getLocalHost())
.setProxy(new HttpHost("someproxy")) .setProxy(new HttpHost("someproxy"))
.setTargetPreferredAuthSchemes(Arrays.asList(AuthSchemes.NTLM)) .setTargetPreferredAuthSchemes(Arrays.asList(AuthSchemes.NTLM))
.setProxyPreferredAuthSchemes(Arrays.asList(AuthSchemes.DIGEST)) .setProxyPreferredAuthSchemes(Arrays.asList(AuthSchemes.DIGEST))
.setContentCompressionEnabled(false) .setContentCompressionEnabled(false)
.setNormalizeUri(false)
.build(); .build();
final RequestConfig config = RequestConfig.copy(config0).build(); final RequestConfig config = RequestConfig.copy(config0).build();
Assert.assertEquals(22, config.getSocketTimeout()); Assert.assertEquals(22, config.getSocketTimeout());
Assert.assertEquals(33, config.getConnectTimeout()); Assert.assertEquals(33, config.getConnectTimeout());
Assert.assertEquals(44, config.getConnectionRequestTimeout()); Assert.assertEquals(44, config.getConnectionRequestTimeout());
Assert.assertEquals(true, config.isExpectContinueEnabled()); Assert.assertEquals(true, config.isExpectContinueEnabled());
Assert.assertEquals(false, config.isAuthenticationEnabled()); Assert.assertEquals(false, config.isAuthenticationEnabled());
Assert.assertEquals(false, config.isRedirectsEnabled()); Assert.assertEquals(false, config.isRedirectsEnabled());
Assert.assertEquals(false, config.isRelativeRedirectsAllowed()); Assert.assertEquals(false, config.isRelativeRedirectsAllowed());
Assert.assertEquals(true, config.isCircularRedirectsAllowed()); Assert.assertEquals(true, config.isCircularRedirectsAllowed());
Assert.assertEquals(100, config.getMaxRedirects()); Assert.assertEquals(100, config.getMaxRedirects());
Assert.assertEquals(CookieSpecs.STANDARD, config.getCookieSpec()); Assert.assertEquals(CookieSpecs.STANDARD, config.getCookieSpec());
Assert.assertEquals(InetAddress.getLocalHost(), config.getLocalAddress() ); Assert.assertEquals(InetAddress.getLocalHost(), config.getLocalAddress() );
Assert.assertEquals(new HttpHost("someproxy"), config.getProxy()); Assert.assertEquals(new HttpHost("someproxy"), config.getProxy());
Assert.assertEquals(Arrays.asList(AuthSchemes.NTLM), config.getTargetPre ferredAuthSchemes()); Assert.assertEquals(Arrays.asList(AuthSchemes.NTLM), config.getTargetPre ferredAuthSchemes());
Assert.assertEquals(Arrays.asList(AuthSchemes.DIGEST), config.getProxyPr eferredAuthSchemes()); Assert.assertEquals(Arrays.asList(AuthSchemes.DIGEST), config.getProxyPr eferredAuthSchemes());
Assert.assertEquals(false, config.isContentCompressionEnabled()); Assert.assertEquals(false, config.isContentCompressionEnabled());
Assert.assertEquals(false, config.isNormalizeUri());
} }
} }
 End of changes. 2 change blocks. 
0 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)