public DigitsValidatorTest(String name) {
super(name);
}
public void testValidateNumber() {
DigitsValidatorForNumber validator = new DigitsValidatorForNumber();
validator.setFractional(4);
validator.setIntegral(2);
BigDecimal val = new BigDecimal("100.12345");
Assert.assertFalse(validator.isValid(val, null));
val = new BigDecimal("99.1234");
Assert.assertTrue(validator.isValid(val, null));
}