Search in sources :

Example 1 with ProfileValueExtractor

use of org.baeldung.valueextractors.ProfileValueExtractor in project tutorials by eugenp.

the class ContainerValidationIntegrationTest method setup.

@Before
public void setup() {
    ValidatorFactory factory = Validation.byDefaultProvider().configure().addValueExtractor(new ProfileValueExtractor()).buildValidatorFactory();
    validator = factory.getValidator();
}
Also used : ProfileValueExtractor(org.baeldung.valueextractors.ProfileValueExtractor) ValidatorFactory(javax.validation.ValidatorFactory) Before(org.junit.Before)

Aggregations

ValidatorFactory (javax.validation.ValidatorFactory)1 ProfileValueExtractor (org.baeldung.valueextractors.ProfileValueExtractor)1 Before (org.junit.Before)1