diff --git a/spring-webmvc/src/test/java/org/springframework/web/servlet/mvc/method/annotation/MethodValidationTests.java b/spring-webmvc/src/test/java/org/springframework/web/servlet/mvc/method/annotation/MethodValidationTests.java index bfee95c745e..544e37e31e1 100644 --- a/spring-webmvc/src/test/java/org/springframework/web/servlet/mvc/method/annotation/MethodValidationTests.java +++ b/spring-webmvc/src/test/java/org/springframework/web/servlet/mvc/method/annotation/MethodValidationTests.java @@ -41,7 +41,7 @@ import jakarta.validation.constraints.Size; import jakarta.validation.executable.ExecutableValidator; import jakarta.validation.metadata.BeanDescriptor; -import org.hibernate.validator.internal.engine.constraintvalidation.ConstraintValidatorFactoryImpl; +import org.hibernate.validator.constraintvalidation.spi.DefaultConstraintValidatorFactory; import org.junit.jupiter.api.AfterEach; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; @@ -557,7 +557,7 @@ private static class TestConstraintValidatorFactory implements ConstraintValidat private final Map, ConstraintValidator> validators; - private final ConstraintValidatorFactory delegate = new ConstraintValidatorFactoryImpl(); + private final ConstraintValidatorFactory delegate = new DefaultConstraintValidatorFactory(); private TestConstraintValidatorFactory(ConstraintValidator... validators) { this.validators = new LinkedHashMap<>(validators.length);