File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
spring-boot/src/test/java/org/springframework/boot/context/properties/bind Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -199,15 +199,15 @@ public void bindToJavaBeanShouldTriggerOnSuccess() throws Exception {
199
199
@ Test
200
200
public void bindWhenHasMalformedDateShouldThrowException () throws Exception {
201
201
this .thrown .expectCause (instanceOf (ConversionFailedException .class ));
202
- this .sources .add (new MockConfigurationPropertySource ("foo" , "2014-04-01 " ));
202
+ this .sources .add (new MockConfigurationPropertySource ("foo" , "2014-04-01T01:30:00.000-05:00 " ));
203
203
this .binder .bind ("foo" , Bindable .of (LocalDate .class ));
204
204
}
205
205
206
206
@ Test
207
207
public void bindWhenHasAnnotationsShouldChangeConvertedValue () throws Exception {
208
- this .sources .add (new MockConfigurationPropertySource ("foo" , "2014-04-01 " ));
208
+ this .sources .add (new MockConfigurationPropertySource ("foo" , "2014-04-01T01:30:00.000-05:00 " ));
209
209
DateTimeFormat annotation = AnnotationUtils .synthesizeAnnotation (
210
- Collections .singletonMap ("iso" , DateTimeFormat .ISO .DATE ),
210
+ Collections .singletonMap ("iso" , DateTimeFormat .ISO .DATE_TIME ),
211
211
DateTimeFormat .class , null );
212
212
LocalDate result = this .binder
213
213
.bind ("foo" , Bindable .of (LocalDate .class ).withAnnotations (annotation ))
You can’t perform that action at this time.
0 commit comments