commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From n...@apache.org
Subject svn commit: r1128448 - /commons/proper/validator/trunk/src/test/java/org/apache/commons/validator/routines/DomainValidatorTest.java
Date Fri, 27 May 2011 20:39:43 GMT
Author: nick
Date: Fri May 27 20:39:42 2011
New Revision: 1128448

URL: http://svn.apache.org/viewvc?rev=1128448&view=rev
Log:
VALIDATOR-290 - Initial test for validating an IDN domain

Modified:
    commons/proper/validator/trunk/src/test/java/org/apache/commons/validator/routines/DomainValidatorTest.java

Modified: commons/proper/validator/trunk/src/test/java/org/apache/commons/validator/routines/DomainValidatorTest.java
URL: http://svn.apache.org/viewvc/commons/proper/validator/trunk/src/test/java/org/apache/commons/validator/routines/DomainValidatorTest.java?rev=1128448&r1=1128447&r2=1128448&view=diff
==============================================================================
--- commons/proper/validator/trunk/src/test/java/org/apache/commons/validator/routines/DomainValidatorTest.java
(original)
+++ commons/proper/validator/trunk/src/test/java/org/apache/commons/validator/routines/DomainValidatorTest.java
Fri May 27 20:39:42 2011
@@ -106,4 +106,8 @@ public class DomainValidatorTest extends
        assertTrue("apache.org should validate", allowLocal.isValid("apache.org"));
        assertFalse("domain name with spaces shouldn't validate", allowLocal.isValid(" apache.org
"));
     }
+    
+    public void testIDN() {
+       assertTrue("bücher.ch in IDN should validate", validator.isValid("www.xn--bcher-kva.ch"));
+    }
 }



Mime
View raw message