assertEquals(1, errors.size());
}
@SuppressWarnings("unchecked")
public void testValidationPasswdTooShort() throws Exception{
DefaultActionValidatorManager validator = new DefaultActionValidatorManager();
action.setUsername("abc30");
action.setPassword("pop");
action.setPasswordConfirm("pop");
action.setEmail("233@foo.com");
validator.validate(action, "createUser");
assertTrue(action.hasFieldErrors());
Map<String, Object> errors = action.getFieldErrors();
assertEquals(1, errors.size());
}