use of javax.validation.ValidatorFactory in project tomee by apache.
the class AppComposerAsJUnitRuleTest method injectionValidatorFactory.
@Test
public void injectionValidatorFactory() {
final ValidatorFactory validatorFactory = persistManager.getValidatorFactory();
assertNotNull(validatorFactory);
}
use of javax.validation.ValidatorFactory in project tomee by apache.
the class AppComposerAsJUnitRuleWithReusableModulesTest method injectionValidatorFactory.
@Test
public void injectionValidatorFactory() {
final ValidatorFactory validatorFactory = persistManager.getValidatorFactory();
assertNotNull(validatorFactory);
}
use of javax.validation.ValidatorFactory in project tomee by apache.
the class BeanValidationTest method lookupValidatorFactory.
@Test
public void lookupValidatorFactory() throws Exception {
final ValidatorFactory validatorFactory = (ValidatorFactory) new InitialContext().lookup("java:comp/ValidatorFactory");
assertNotNull(validatorFactory);
}
use of javax.validation.ValidatorFactory in project minijax by minijax.
the class ValidationTest method setUpValidator.
@BeforeClass
public static void setUpValidator() {
// tag::setUpValidator[]
ValidatorFactory factory = Validation.buildDefaultValidatorFactory();
validator = factory.getValidator();
// end::setUpValidator[]
}
use of javax.validation.ValidatorFactory in project minijax by minijax.
the class CarTest method setUpValidator.
@BeforeClass
public static void setUpValidator() {
ValidatorFactory factory = Validation.byProvider(MinijaxValidationProvider.class).configure().buildValidatorFactory();
validator = factory.getValidator();
}
Aggregations