commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1649170 - /commons/proper/validator/trunk/src/test/java/org/apache/commons/validator/routines/EmailValidatorTest.java
Date Sat, 03 Jan 2015 02:57:36 GMT
Author: sebb
Date: Sat Jan  3 02:57:36 2015
New Revision: 1649170

URL: http://svn.apache.org/r1649170
Log:
VALIDATOR-315 - Email validator does not properly validate symbolic domain names
Add test to show it has been 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=1649170&r1=1649169&r2=1649170&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
Sat Jan  3 02:57:36 2015
@@ -136,7 +136,12 @@ public class EmailValidatorTest extends
 
     }
 
-   /**
+    public void testVALIDATOR_315() {
+        assertFalse(validator.isValid("me@at&t.net"));
+        assertTrue(validator.isValid("me@att.net")); // Make sure TLD is not the cause of
the failure
+    }
+
+    /**
     * Tests the email validation with commas.
     */
     public void testEmailWithCommas()  {



Mime
View raw message