assertEquals(1, validationResolver.getValidationMessages().size());
}
public void testValidationResolverMap() throws Exception {
ValidableBean bean = new ValidableBean();
HibernateValidator beanValidator = new HibernateValidator();
ValidationResolver validationResolver = beanValidator.createValidationResolver(facesContext, facesContext.getELContext().getELResolver(),null);
Object list = validationResolver.getValue(elContext, bean, "map");
assertNotNull(list);
assertTrue(list instanceof Map);
validationResolver.setValue(elContext, list, new Integer(0), "");
assertFalse(validationResolver.isValid());
assertEquals(1, validationResolver.getValidationMessages().size());
}