hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1443286 - /httpcomponents/httpclient/trunk/httpclient/src/test/java/org/apache/http/conn/util/TestInetAddressUtils.java
Date Thu, 07 Feb 2013 00:17:31 GMT
Author: sebb
Date: Thu Feb  7 00:17:31 2013
New Revision: 1443286

URL: http://svn.apache.org/viewvc?rev=1443286&view=rev
Log:
HTTPCLIENT-1319 - add disabled tests

Modified:
    httpcomponents/httpclient/trunk/httpclient/src/test/java/org/apache/http/conn/util/TestInetAddressUtils.java

Modified: httpcomponents/httpclient/trunk/httpclient/src/test/java/org/apache/http/conn/util/TestInetAddressUtils.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient/trunk/httpclient/src/test/java/org/apache/http/conn/util/TestInetAddressUtils.java?rev=1443286&r1=1443285&r2=1443286&view=diff
==============================================================================
--- httpcomponents/httpclient/trunk/httpclient/src/test/java/org/apache/http/conn/util/TestInetAddressUtils.java
(original)
+++ httpcomponents/httpclient/trunk/httpclient/src/test/java/org/apache/http/conn/util/TestInetAddressUtils.java
Thu Feb  7 00:17:31 2013
@@ -68,4 +68,12 @@ public class TestInetAddressUtils {
         Assert.assertFalse(InetAddressUtils.isIPv6Address("2001:0db8::0000::57ab")); // Cannot
have two contractions
     }
 
+    @Test
+    @org.junit.Ignore
+    // Test HTTPCLIENT-1319
+    public void testInvalidIPv6AddressIncorrectGroupCount() {
+        Assert.assertFalse(InetAddressUtils.isIPv6HexCompressedAddress("::")); // not enough
fields
+        Assert.assertFalse(InetAddressUtils.isIPv6HexCompressedAddress("1::2:3:4:5:6:7:8"));
// too many fields
+    }
+
 }



Mime
View raw message