mirror of https://github.com/apache/archiva.git
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:
parent
e19841f467
commit
b6dd4adbe6
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue