more unit tests

git-svn-id: https://svn.apache.org/repos/asf/maven/repository-manager/trunk@412984 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Edwin L. Punzalan 2006-06-09 08:54:31 +00:00
parent e19841f467
commit b6dd4adbe6
1 changed files with 15 additions and 0 deletions

View File

@ -112,6 +112,21 @@ public class ProxyConfigurationTest
assertEquals( repositories, config.getRepositories() );
}
public void testHttpProxy()
throws Exception
{
config.setHttpProxy( "some.local.proxy", DEFAULT_PORT, "username", "password", "ntlmHost", "ntlmDomain" );
ProxyInfo proxyInfo = config.getHttpProxy();
assertEquals( "test proxy host", proxyInfo.getHost(), "some.local.proxy" );
assertEquals( DEFAULT_PORT, proxyInfo.getPort() );
assertEquals( "username", proxyInfo.getUserName() );
assertEquals( "password", proxyInfo.getPassword() );
assertEquals( "ntlmHost", proxyInfo.getNtlmHost() );
assertEquals( "ntlmDomain", proxyInfo.getNtlmDomain() );
}
protected void tearDown()
throws Exception
{