"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "httpclient/src/test/java/org/apache/http/client/utils/TestURIUtils.java" between
httpcomponents-client-4.5.9-src.tar.gz and httpcomponents-client-4.5.10-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.

TestURIUtils.java  (httpcomponents-client-4.5.9-src):TestURIUtils.java  (httpcomponents-client-4.5.10-src)
skipping to change at line 85 skipping to change at line 85
URI.create("http://userinfo@thathost/stuff#fragment")).toString( )); URI.create("http://userinfo@thathost/stuff#fragment")).toString( ));
Assert.assertEquals("http://thathost/", URIUtils.rewriteURI( Assert.assertEquals("http://thathost/", URIUtils.rewriteURI(
URI.create("http://thathost")).toString()); URI.create("http://thathost")).toString());
Assert.assertEquals("http://thathost/", URIUtils.rewriteURI( Assert.assertEquals("http://thathost/", URIUtils.rewriteURI(
URI.create("http://ThatHost")).toString()); URI.create("http://ThatHost")).toString());
Assert.assertEquals("http://That_Host/", URIUtils.rewriteURI( Assert.assertEquals("http://That_Host/", URIUtils.rewriteURI(
URI.create("http://That_Host")).toString()); URI.create("http://That_Host")).toString());
Assert.assertEquals("http://thishost/Fragment_identifier%23Examples", Assert.assertEquals("http://thishost/Fragment_identifier%23Examples",
URIUtils.rewriteURI( URIUtils.rewriteURI(
URI.create("http://thishost/Fragment_identifier%23Exampl es")).toString()); URI.create("http://thishost/Fragment_identifier%23Exampl es")).toString());
Assert.assertEquals("http://thathost/foo%3Abar", URIUtils.rewriteURI(
URI.create("http://thishost/foo%3Abar"), target).toString());
} }
@Test @Test
public void testRewriteWithEmptyPath() throws Exception { public void testRewriteWithEmptyPath() throws Exception {
final HttpHost target = new HttpHost("thathost", -1); final HttpHost target = new HttpHost("thathost", -1);
Assert.assertEquals("http://thathost/", URIUtils.rewriteURI( Assert.assertEquals("http://thathost/", URIUtils.rewriteURI(
URI.create("http://thathost"), target, DROP_FRAGMENT_AND_NORMALIZE). toString()); URI.create("http://thathost"), target, DROP_FRAGMENT_AND_NORMALIZE). toString());
Assert.assertEquals("http://thathost/", URIUtils.rewriteURI( Assert.assertEquals("http://thathost/", URIUtils.rewriteURI(
URI.create("http://thathost"), target, DROP_FRAGMENT).toString()); URI.create("http://thathost"), target, DROP_FRAGMENT).toString());
 End of changes. 1 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)