use of jakarta.validation.BootstrapConfiguration in project hibernate-validator by hibernate.
the class XmlMappingTest method testTemporalValidationToleranceConfiguration.
@Test
@TestForIssue(jiraKey = "HV-1493")
public void testTemporalValidationToleranceConfiguration() {
validationXmlTestHelper.runWithCustomValidationXml("temporal-validation-tolerance-duration-validation.xml", () -> {
// given
BootstrapConfiguration bootstrapConfiguration = ValidatorUtil.getConfiguration().getBootstrapConfiguration();
// then
assertEquals(bootstrapConfiguration.getProperties().get(HibernateValidatorConfiguration.TEMPORAL_VALIDATION_TOLERANCE), "123456");
});
}
Aggregations