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