You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by Michael Becke <be...@u.washington.edu> on 2003/01/30 18:20:09 UTC
[PATCH] test URI
The attached patch adds the following test cases to TestURI:
URI.URI( "http://a/b/c/d;p?q", "#" )
URI.URI( "http://a/b/c/d;p?q", "" )
Mike
Re: [PATCH] test URI
Posted by Oleg Kalnichevski <o....@dplanet.ch>.
Committed.
Cheers, Mike
Oleg
On Thu, 2003-01-30 at 18:20, Michael Becke wrote:
> The attached patch adds the following test cases to TestURI:
>
> URI.URI( "http://a/b/c/d;p?q", "#" )
> URI.URI( "http://a/b/c/d;p?q", "" )
>
> Mike
>
> ______________________________________________________________________
>
> Index: test/org/apache/commons/httpclient/TestURI.java
> ===================================================================
> RCS file: /home/cvspublic/jakarta-commons/httpclient/src/test/org/apache/commons/httpclient/TestURI.java,v
> retrieving revision 1.2
> diff -u -r1.2 TestURI.java
> --- test/org/apache/commons/httpclient/TestURI.java 30 Jan 2003 03:39:15 -0000 1.2
> +++ test/org/apache/commons/httpclient/TestURI.java 30 Jan 2003 17:17:22 -0000
> @@ -106,7 +106,6 @@
> //
> // these examples were taken from rfc 2396
> String[][] testRelativeURIs = {
> - { "#s", "http", "a", "/b/c/d;p", "q", "s", "http://a/b/c/d;p?q#s" },
> { "g:h", "g", null, "h", null, null, "g:h" },
> { "g", "http", "a", "/b/c/g", null, null, "http://a/b/c/g" },
> { "./g", "http", "a", "/b/c/g", null, null, "http://a/b/c/g" },
> @@ -116,6 +115,8 @@
> { "?y", "http", "a", "/b/c/", "y", null, "http://a/b/c/?y" },
> { "g?y", "http", "a", "/b/c/g", "y", null, "http://a/b/c/g?y" },
> { "#s", "http", "a", "/b/c/d;p", "q", "s", "http://a/b/c/d;p?q#s" },
> + { "#", "http", "a", "/b/c/d;p", "q", "", "http://a/b/c/d;p?q#" },
> + { "", "http", "a", "/b/c/d;p", "q", null, "http://a/b/c/d;p?q" },
> { "g#s", "http", "a", "/b/c/g", null, "s", "http://a/b/c/g#s" },
> { "g?y#s","http", "a", "/b/c/g", "y", "s", "http://a/b/c/g?y#s" },
> { ";x", "http", "a", "/b/c/;x", null, null, "http://a/b/c/;x" },
>
>
> ______________________________________________________________________
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-httpclient-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-httpclient-dev-help@jakarta.apache.org
--
Oleg Kalnichevski <o....@dplanet.ch>