Test case for UrlHelper.
author: Matt Ho <matt@enginegreen.com> author: tm_jee version: $Date: 2007-02-03 07:53:28 +0100 (Sat, 03 Feb 2007) $ $Id: UrlHelperTest.java 2827 2007-02-03 06:53:28Z tschneider22 $
testBuildWithSameScheme() A check to verify that the scheme, server, and port number are omitted when the scheme of the current request
matches the scheme supplied when building the URL.
testSwitchToHttpScheme() The UrlHelper should build a URL that starts with "http" followed by the server name when the scheme of the
current request is "https" and the port for the "http" scheme is 80.
testSwitchToHttpsScheme() The UrlHelper should build a URL that starts with "https" followed by the server name when the scheme of the
current request is "http" and the port for the "https" scheme is 443.
A check to verify that the scheme, server, and port number are omitted when the scheme of the current request
matches the scheme supplied when building the URL.
testDoNotForceAddSchemeHostAndPort
public void testDoNotForceAddSchemeHostAndPort() throws Exception(Code)
testForceAddNullSchemeHostAndPort
public void testForceAddNullSchemeHostAndPort() throws Exception(Code)
testForceAddSchemeHostAndPort
public void testForceAddSchemeHostAndPort() throws Exception(Code)
testParseDuplicateQuery
public void testParseDuplicateQuery() throws Exception(Code)
The UrlHelper should build a URL that starts with "http" followed by the server name when the scheme of the
current request is "https" and the port for the "http" scheme is 80.
testSwitchToHttpsNonDefaultPort
public void testSwitchToHttpsNonDefaultPort()(Code)
The UrlHelper should build a URL that starts with "https" followed by the server name when the scheme of the
current request is "http" and the port for the "https" scheme is 443.