public abstract class AbstractNumberValidatorTests<V extends AbstractNumberValidator>
extends AbstractValidatorTests<V> {
@Test
public void init_numberType() throws Exception {
AbstractNumberValidator v = newValidatorFor_AbstractNumberValidatorTests();
v.setMessage("message");
// default value
assertEquals(INT, v.getNumberType());
// set null
try {
v.setNumberType(null);
fail();
} catch (IllegalArgumentException e) {
assertThat(e, exception("numberType"));
}
// set numberType
v.setNumberType(LONG);
assertEquals(LONG, v.getNumberType());
}