assertEquals(2,errors.size());
}
@SuppressWarnings("unchecked")
public void testActionValidationPasswdInputNotSame() throws Exception{
DefaultActionValidatorManager validator = new DefaultActionValidatorManager();
action.setToken("foobartoken");
action.setUsername("hchen1");
action.setPassword("abcdeffg");
action.setPasswordConfirm("1234567");
validator.validate(action, "resetPassword");
assertTrue(action.hasFieldErrors());
Map<String,Object> errors = action.getFieldErrors();
assertEquals(1,errors.size());
}