Fix following upstream API change

Update implementations of `WebFluxConfigurer` to no longer return an
`Optional` validator.
pull/8534/merge
Phillip Webb 8 years ago
parent 05111a17b8
commit 6531423519

@ -19,7 +19,6 @@ package org.springframework.boot.autoconfigure.web.reactive;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Optional;
import javax.validation.ValidatorFactory;
@ -359,8 +358,8 @@ public class WebFluxAutoConfigurationTests {
private final Validator validator = mock(Validator.class);
@Override
public Optional<Validator> getValidator() {
return Optional.of(this.validator);
public Validator getValidator() {
return this.validator;
}
}
@ -371,8 +370,8 @@ public class WebFluxAutoConfigurationTests {
private final LocalValidatorFactoryBean validator = new LocalValidatorFactoryBean();
@Override
public Optional<Validator> getValidator() {
return Optional.of(this.validator);
public Validator getValidator() {
return this.validator;
}
}

Loading…
Cancel
Save