public class BuiltInValidatorsTest extends PluggableProcessEngineTestCase {
public void testDefaultFormFieldValidators() {
// assert default validators are registered
FormValidators formValidators = ((ProcessEngineImpl) processEngine).getProcessEngineConfiguration().getFormValidators();
Map<String, Class<? extends FormFieldValidator>> validators = formValidators.getValidators();
assertEquals(RequiredValidator.class, validators.get("required"));
assertEquals(ReadOnlyValidator.class, validators.get("readonly"));
assertEquals(MinValidator.class, validators.get("min"));
assertEquals(MaxValidator.class, validators.get("max"));
assertEquals(MaxLengthValidator.class, validators.get("maxlength"));