/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/* @test
* @bug 4482455
* @summary URI.toURL() implementation needs to be improved
*
*/
public class URIToURLTest {
"http://[1080:0:0:0:8:800:200C:417A]/index.html",
"mailto:mduerst@ifi.unizh.ch", // opaque url
"http:comp.infosystems.www.servers.unix" //opaque url
};
if (!schemeCheck)
" url.protocol is " +
url.getProtocol());
if (!sspCheck) {
}
} else {
if (!authorityCheck) {
throw new RuntimeException("uri.authority is " +
authority + " url's is " +
url.getAuthority());
}
if (!hostCheck)
throw new RuntimeException("uri.host is " +
host + " url's is " +
throw new RuntimeException("uri.port is " +
}
if (!pathCheck)
" url.path is " +
if (!queryCheck)
" url.query is " +
}
if (!fragCheck)
" url.ref is " +
}
}
}