@@ -101,6 +101,9 @@ public void testNormalizeUrl() throws Exception {
101101 final String largeUrl = "https://www.kursweb.ch/webstart/webstart.selfsigned.jnlp?db=C:%5CUsers%5CFabian%5Cmerkisoft%5Cferienplausch-uster%5C&name=C:%5CUsers%5CFabian%5Cmerkisoft%5Cferienplausch-uster%5C" ;
102102 assertEquals (largeUrl , UrlUtils .normalizeUrl (new URL (largeUrl )).toString ());
103103
104+ final String largeUrlWithPort = "https://www.kursweb.ch:443/webstart/webstart.selfsigned.jnlp?db=C:%5CUsers%5CFabian%5Cmerkisoft%5Cferienplausch-uster%5C&name=C:%5CUsers%5CFabian%5Cmerkisoft%5Cferienplausch-uster%5C" ;
105+ assertEquals (largeUrl , UrlUtils .normalizeUrl (new URL (largeUrl )).toString ());
106+
104107 // PR1465: Test that RFC2396-compliant URLs are not touched
105108 // Example taken from bug report: http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=1465
106109 String rfc2396Valid = "https://example.com/,DSID=64c19c5b657df383835706571a7c7216,DanaInfo=example.com,CT=java+JICAComponents/JICA-sicaN.jar" ;
@@ -309,7 +312,9 @@ public void notNullUrlValuesEqualsCaseSensitiveIssuesTest() throws Exception {
309312 @ KnownToFail
310313 @ Ignore
311314 public void notNullUrlCompareWithPorts () throws Exception {
312- final URL u1 = new URL ("http://example.com:1" ), u2 = new URL ("http://example.com:1" ), u3 = new URL ("http://example.com:3" );
315+ final URL u1 = new URL ("http://example.com:1" );
316+ final URL u2 = new URL ("http://example.com:1" );
317+ final URL u3 = new URL ("http://example.com:3" );
313318 Assert .assertTrue (UrlUtils .notNullUrlEquals (u1 , u2 ));
314319 Assert .assertFalse (UrlUtils .notNullUrlEquals (u1 , u3 ));
315320 Assert .assertFalse (UrlUtils .notNullUrlEquals (u2 , u3 ));
0 commit comments