incubator-bval-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mben...@apache.org
Subject svn commit: r1209717 - /incubator/bval/trunk/bval-jsr303/src/test/java/org/apache/bval/constraints/DigitsValidatorTest.java
Date Fri, 02 Dec 2011 21:55:40 GMT
Author: mbenson
Date: Fri Dec  2 21:55:39 2011
New Revision: 1209717

URL: http://svn.apache.org/viewvc?rev=1209717&view=rev
Log:
add breaking test for [BVAL-90]

Modified:
    incubator/bval/trunk/bval-jsr303/src/test/java/org/apache/bval/constraints/DigitsValidatorTest.java

Modified: incubator/bval/trunk/bval-jsr303/src/test/java/org/apache/bval/constraints/DigitsValidatorTest.java
URL: http://svn.apache.org/viewvc/incubator/bval/trunk/bval-jsr303/src/test/java/org/apache/bval/constraints/DigitsValidatorTest.java?rev=1209717&r1=1209716&r2=1209717&view=diff
==============================================================================
--- incubator/bval/trunk/bval-jsr303/src/test/java/org/apache/bval/constraints/DigitsValidatorTest.java
(original)
+++ incubator/bval/trunk/bval-jsr303/src/test/java/org/apache/bval/constraints/DigitsValidatorTest.java
Fri Dec  2 21:55:39 2011
@@ -47,6 +47,8 @@ public class DigitsValidatorTest extends
         Assert.assertFalse(validator.isValid(Double.valueOf(100.1234), null));
         Assert.assertFalse(validator.isValid(Double.valueOf(99.12345), null));
         Assert.assertTrue(validator.isValid(Double.valueOf(99.1234), null));
+        Assert.assertTrue(validator.isValid(Double.valueOf(99.123400), null));
+        Assert.assertTrue(validator.isValid(new BigDecimal("99.123400"), null));
     }
 
     public void testValidateString() {



Mime
View raw message