You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by jk...@apache.org on 2014/06/21 22:31:27 UTC
git commit: TAP5-2282: ensure that aac@bbb/cc is not considered a
valid email address
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 <jk...@apache.org>
Authored: Sat Jun 21 22:30:22 2014 +0200
Committer: Jochen Kemnade <jk...@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();
}