@Test
public void defaultBooleanPropertyDefinitionWithNoValidator() {
DefaultPropertyDefinition def = new DefaultPropertyDefinition(DefaultPropertyDefinition.TYPE_BOOLEAN, "bool1", "on,off",
10, "on", 50, "test", true, "com.adito.input.validators.BooleanValidator", null, null);
try {
def.validate("off", getClass().getClassLoader());
} catch (CodedException ce) {
Assert.fail("Validation failed when it shouldn't.");
}
}