use of org.hibernate.validator.HibernateValidatorFactory in project wildfly by wildfly.
the class LazyValidatorFactoryTestCase method testHibernateValidatorIsUsedAsProviderByDefault.
@Test
public void testHibernateValidatorIsUsedAsProviderByDefault() {
HibernateValidatorFactory hibernateValidatorFactory = validatorFactory.unwrap(HibernateValidatorFactory.class);
assertNotNull("LazyValidatorFactory should delegate to the HV factory by default", hibernateValidatorFactory);
Validator validator = validatorFactory.getValidator();
assertNotNull("LazyValidatorFactory should provide a validator", validator);
}
use of org.hibernate.validator.HibernateValidatorFactory in project wildfly by wildfly.
the class BootStrapValidationTestCase method testBootstrapAsServiceDefault.
@Test
public void testBootstrapAsServiceDefault() {
HibernateValidatorFactory factory = (HibernateValidatorFactory) Validation.buildDefaultValidatorFactory();
assertNotNull(factory);
}
Aggregations