]> source.dussan.org Git - archiva.git/commitdiff
more unit tests
authorEdwin L. Punzalan <epunzalan@apache.org>
Fri, 9 Jun 2006 08:54:31 +0000 (08:54 +0000)
committerEdwin L. Punzalan <epunzalan@apache.org>
Fri, 9 Jun 2006 08:54:31 +0000 (08:54 +0000)
git-svn-id: https://svn.apache.org/repos/asf/maven/repository-manager/trunk@412984 13f79535-47bb-0310-9956-ffa450edef68

maven-repository-proxy/src/test/java/org/apache/maven/repository/proxy/configuration/ProxyConfigurationTest.java

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