mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-09-24 02:09:05 +00:00
Fix tests
See gh-19599
This commit is contained in:
+1
-1
@@ -122,7 +122,7 @@ class ValidationBindHandlerTests {
|
||||
this.sources.add(new MockConfigurationPropertySource("foo.nested.age", "4"));
|
||||
BindValidationException cause = bindAndExpectValidationError(() -> this.binder.bind(
|
||||
ConfigurationPropertyName.of("foo"), Bindable.of(ExampleValidatedWithNestedBean.class), this.handler));
|
||||
assertThat(cause.getValidationErrors().getName().toString()).isEqualTo("foo");
|
||||
assertThat(cause.getValidationErrors().getName().toString()).isEqualTo("foo.nested");
|
||||
assertThat(cause.getMessage()).contains("nested.age");
|
||||
assertThat(cause.getMessage()).contains("rejected value [4]");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user