tapestry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pferr...@apache.org
Subject cvs commit: jakarta-tapestry/framework/src/test/org/apache/tapestry/form/translator TestNumberTranslator.java TestDateTranslator.java
Date Sun, 05 Jun 2005 00:15:25 GMT
pferraro    2005/06/04 17:15:24

  Modified:    framework/src/test/org/apache/tapestry/form/translator
                        TestNumberTranslator.java TestDateTranslator.java
  Log:
  Added ValidationConstraint assertions
  
  Revision  Changes    Path
  1.2       +2 -0      jakarta-tapestry/framework/src/test/org/apache/tapestry/form/translator/TestNumberTranslator.java
  
  Index: TestNumberTranslator.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tapestry/framework/src/test/org/apache/tapestry/form/translator/TestNumberTranslator.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- TestNumberTranslator.java	4 Jun 2005 23:53:21 -0000	1.1
  +++ TestNumberTranslator.java	5 Jun 2005 00:15:24 -0000	1.2
  @@ -17,6 +17,7 @@
   import java.util.Locale;
   
   import org.apache.tapestry.form.FormEventType;
  +import org.apache.tapestry.valid.ValidationConstraint;
   import org.apache.tapestry.valid.ValidatorException;
   
   public class TestNumberTranslator extends TranslatorTestCase
  @@ -150,6 +151,7 @@
           catch (ValidatorException e)
           {
               assertEquals(message, e.getMessage());
  +            assertEquals(ValidationConstraint.NUMBER_FORMAT, e.getConstraint());
           }
           finally
           {
  
  
  
  1.2       +2 -0      jakarta-tapestry/framework/src/test/org/apache/tapestry/form/translator/TestDateTranslator.java
  
  Index: TestDateTranslator.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tapestry/framework/src/test/org/apache/tapestry/form/translator/TestDateTranslator.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- TestDateTranslator.java	4 Jun 2005 23:53:21 -0000	1.1
  +++ TestDateTranslator.java	5 Jun 2005 00:15:24 -0000	1.2
  @@ -18,6 +18,7 @@
   import java.util.Date;
   import java.util.Locale;
   
  +import org.apache.tapestry.valid.ValidationConstraint;
   import org.apache.tapestry.valid.ValidatorException;
   
   /**
  @@ -195,6 +196,7 @@
           catch (ValidatorException e)
           {
               assertEquals(message, e.getMessage());
  +            assertEquals(ValidationConstraint.DATE_FORMAT, e.getConstraint());
           }
           finally
           {
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-dev-help@jakarta.apache.org


Mime
View raw message