[hibernate-commits] Hibernate SVN: r11228 - branches/Branch_3_2/HibernateExt/validator/src/test/org/hibernate/validator/test.
hibernate-commits at lists.jboss.org
hibernate-commits at lists.jboss.org
Tue Feb 20 19:02:28 EST 2007
Author: epbernard
Date: 2007-02-20 19:02:28 -0500 (Tue, 20 Feb 2007)
New Revision: 11228
Modified:
branches/Branch_3_2/HibernateExt/validator/src/test/org/hibernate/validator/test/EmailTest.java
Log:
HV-3 empty email string should pass
Modified: branches/Branch_3_2/HibernateExt/validator/src/test/org/hibernate/validator/test/EmailTest.java
===================================================================
--- branches/Branch_3_2/HibernateExt/validator/src/test/org/hibernate/validator/test/EmailTest.java 2007-02-21 00:00:37 UTC (rev 11227)
+++ branches/Branch_3_2/HibernateExt/validator/src/test/org/hibernate/validator/test/EmailTest.java 2007-02-21 00:02:28 UTC (rev 11228)
@@ -13,7 +13,9 @@
public void testEmail() throws Exception {
userValidator = new ClassValidator<User>( User.class );
isRightEmail( "emmanuel at hibernate.org" );
- isWrongEmail( "emmanuel.hibernate.org" );
+ isRightEmail( "" );
+ isRightEmail( null );
+ isWrongEmail( "emmanuel.hibernate.org" );
isRightEmail( "emmanuel at hibernate" );
isRightEmail( "emma-n_uel at hibernate" );
isWrongEmail( "emma nuel at hibernate.org" );
More information about the hibernate-commits
mailing list