val = new BigDecimal("99.1234");
Assert.assertTrue(validator.isValid(val, null));
}
public void testValidateString() {
DigitsValidatorForString validator = new DigitsValidatorForString();
validator.setFractional(4);
validator.setIntegral(2);
String val = "100.12345";
Assert.assertFalse(validator.isValid(val, null));
val = "99.1234";
Assert.assertTrue(validator.isValid(val, null));
}