tapestry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jkemn...@apache.org
Subject git commit: TAP5-2282: ensure that aac@bbb/cc is not considered a valid email address
Date Sat, 21 Jun 2014 20:31:27 GMT
Repository: tapestry-5
Updated Branches:
  refs/heads/master 6ee341ae2 -> 4821e2bcf


TAP5-2282: ensure that aac@bbb/cc is not considered a valid email address


Project: http://git-wip-us.apache.org/repos/asf/tapestry-5/repo
Commit: http://git-wip-us.apache.org/repos/asf/tapestry-5/commit/4821e2bc
Tree: http://git-wip-us.apache.org/repos/asf/tapestry-5/tree/4821e2bc
Diff: http://git-wip-us.apache.org/repos/asf/tapestry-5/diff/4821e2bc

Branch: refs/heads/master
Commit: 4821e2bcf2f437b8f77e564639452644f473c7a9
Parents: 6ee341a
Author: Jochen Kemnade <jkemnade@apache.org>
Authored: Sat Jun 21 22:30:22 2014 +0200
Committer: Jochen Kemnade <jkemnade@apache.org>
Committed: Sat Jun 21 22:30:22 2014 +0200

----------------------------------------------------------------------
 .../java/org/apache/tapestry5/validator/EmailTest.java    | 10 ++++++++++
 1 file changed, 10 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tapestry-5/blob/4821e2bc/tapestry-core/src/test/java/org/apache/tapestry5/validator/EmailTest.java
----------------------------------------------------------------------
diff --git a/tapestry-core/src/test/java/org/apache/tapestry5/validator/EmailTest.java b/tapestry-core/src/test/java/org/apache/tapestry5/validator/EmailTest.java
index 4390637..9a9b3e9 100644
--- a/tapestry-core/src/test/java/org/apache/tapestry5/validator/EmailTest.java
+++ b/tapestry-core/src/test/java/org/apache/tapestry5/validator/EmailTest.java
@@ -65,6 +65,16 @@ public class EmailTest extends InternalBaseTestCase
         {
         }
 
+        // TAP5-2282
+        try
+        {
+            validator.validate(field, null, formatter, "aaa@bbb/cc");
+            unreachable();
+        }
+        catch (ValidationException ex)
+        {
+        }
+
         verify();
 
     }


Mime
View raw message