use of org.hibernate.validator.testutils.ValidatorUtil.getValidator in project hibernate-validator by hibernate.
the class ElementDescriptorTest method testGetTypeForConstrainedBean.
@Test
public void testGetTypeForConstrainedBean() {
Validator validator = ValidatorUtil.getValidator();
BeanDescriptor beanDescriptor = validator.getConstraintsForClass(Customer.class);
assertEquals(beanDescriptor.getElementClass(), Customer.class, "Wrong type.");
}
Aggregations