commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From n...@apache.org
Subject svn commit: r1128383 - /commons/proper/validator/trunk/src/test/java/org/apache/commons/validator/routines/EmailValidatorTest.java
Date Fri, 27 May 2011 16:18:25 GMT
Author: nick
Date: Fri May 27 16:18:25 2011
New Revision: 1128383

URL: http://svn.apache.org/viewvc?rev=1128383&view=rev
Log:
VALIDATOR-286 - Patch from JZ showing the bug is already fixed

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

Modified: commons/proper/validator/trunk/src/test/java/org/apache/commons/validator/routines/EmailValidatorTest.java
URL: http://svn.apache.org/viewvc/commons/proper/validator/trunk/src/test/java/org/apache/commons/validator/routines/EmailValidatorTest.java?rev=1128383&r1=1128382&r2=1128383&view=diff
==============================================================================
--- commons/proper/validator/trunk/src/test/java/org/apache/commons/validator/routines/EmailValidatorTest.java
(original)
+++ commons/proper/validator/trunk/src/test/java/org/apache/commons/validator/routines/EmailValidatorTest.java
Fri May 27 16:18:25 2011
@@ -127,6 +127,10 @@ public class EmailValidatorTest extends 
 
         assertTrue(validator.isValid("foo+bar@i.am.not.in.us.example.com"));
 
+        // Domains with only special characters aren't allowed (VALIDATOR-286) 
+        assertFalse(validator.isValid("test@%*.com"));
+        assertFalse(validator.isValid("test@^&#.com"));
+
     }
 
    /**



Mime
View raw message