hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rola...@apache.org
Subject svn commit: r550083 - /jakarta/httpcomponents/httpclient/trunk/module-client/src/test/java/org/apache/http/conn/TestScheme.java
Date Sat, 23 Jun 2007 18:43:01 GMT
Author: rolandw
Date: Sat Jun 23 11:43:00 2007
New Revision: 550083

URL: http://svn.apache.org/viewvc?view=rev&rev=550083
Log:
TestScheme at 100% coverage for SchemeRegistry, too.

Modified:
    jakarta/httpcomponents/httpclient/trunk/module-client/src/test/java/org/apache/http/conn/TestScheme.java

Modified: jakarta/httpcomponents/httpclient/trunk/module-client/src/test/java/org/apache/http/conn/TestScheme.java
URL: http://svn.apache.org/viewvc/jakarta/httpcomponents/httpclient/trunk/module-client/src/test/java/org/apache/http/conn/TestScheme.java?view=diff&rev=550083&r1=550082&r2=550083
==============================================================================
--- jakarta/httpcomponents/httpclient/trunk/module-client/src/test/java/org/apache/http/conn/TestScheme.java
(original)
+++ jakarta/httpcomponents/httpclient/trunk/module-client/src/test/java/org/apache/http/conn/TestScheme.java
Sat Jun 23 11:43:00 2007
@@ -123,11 +123,16 @@
         Scheme myhttp = new Scheme
             ("http", PlainSocketFactory.getSocketFactory(), 80);
 
+        HttpHost host  = new HttpHost("www.test.invalid", -1, "http");
+        HttpHost hosts = new HttpHost("www.test.invalid", -1, "https");
+
     	assertNull(schmreg.register(myhttp));
     	assertNull(schmreg.register(https));
     	assertSame(myhttp, schmreg.register(http));
     	assertSame(http, schmreg.getScheme("http"));
+    	assertSame(http, schmreg.getScheme(host));
     	assertSame(https, schmreg.getScheme("https"));
+    	assertSame(https, schmreg.getScheme(hosts));
 
     	schmreg.unregister("http");
     	schmreg.unregister("https");



Mime
View raw message