@@ -274,9 +274,7 @@ void testBindLocalDateTime() {
274
274
binder .bind (propertyValues );
275
275
assertThat (binder .getBindingResult ().getErrorCount ()).isZero ();
276
276
String value = binder .getBindingResult ().getFieldValue ("localDateTime" ).toString ();
277
- assertThat (value )
278
- .startsWith ("10/31/09" )
279
- .endsWith ("12:00 PM" );
277
+ assertThat (value ).startsWith ("10/31/09" ).endsWith ("12:00 PM" );
280
278
}
281
279
282
280
@ Test
@@ -286,9 +284,7 @@ void testBindLocalDateTimeWithISO() {
286
284
binder .bind (propertyValues );
287
285
assertThat (binder .getBindingResult ().getErrorCount ()).isZero ();
288
286
String value = binder .getBindingResult ().getFieldValue ("localDateTime" ).toString ();
289
- assertThat (value )
290
- .startsWith ("10/31/09" )
291
- .endsWith ("12:00 PM" );
287
+ assertThat (value ).startsWith ("10/31/09" ).endsWith ("12:00 PM" );
292
288
}
293
289
294
290
@ Test
@@ -298,9 +294,7 @@ void testBindLocalDateTimeAnnotated() {
298
294
binder .bind (propertyValues );
299
295
assertThat (binder .getBindingResult ().getErrorCount ()).isZero ();
300
296
String value = binder .getBindingResult ().getFieldValue ("styleLocalDateTime" ).toString ();
301
- assertThat (value )
302
- .startsWith ("Oct 31, 2009" )
303
- .endsWith ("12:00:00 PM" );
297
+ assertThat (value ).startsWith ("Oct 31, 2009" ).endsWith ("12:00:00 PM" );
304
298
}
305
299
306
300
@ Test
@@ -310,9 +304,7 @@ void testBindLocalDateTimeFromJavaUtilCalendar() {
310
304
binder .bind (propertyValues );
311
305
assertThat (binder .getBindingResult ().getErrorCount ()).isZero ();
312
306
String value = binder .getBindingResult ().getFieldValue ("localDateTime" ).toString ();
313
- assertThat (value )
314
- .startsWith ("10/31/09" )
315
- .endsWith ("12:00 PM" );
307
+ assertThat (value ).startsWith ("10/31/09" ).endsWith ("12:00 PM" );
316
308
}
317
309
318
310
@ Test
@@ -325,9 +317,7 @@ void testBindDateTimeWithSpecificStyle() {
325
317
binder .bind (propertyValues );
326
318
assertThat (binder .getBindingResult ().getErrorCount ()).isZero ();
327
319
String value = binder .getBindingResult ().getFieldValue ("localDateTime" ).toString ();
328
- assertThat (value )
329
- .startsWith ("Oct 31, 2009" )
330
- .endsWith ("12:00:00 PM" );
320
+ assertThat (value ).startsWith ("Oct 31, 2009" ).endsWith ("12:00:00 PM" );
331
321
}
332
322
333
323
@ Test
@@ -540,6 +530,7 @@ void testBindMonthDayAnnotatedPattern() {
540
530
assertThat (binder .getBindingResult ().getRawFieldValue ("monthDayAnnotatedPattern" )).isEqualTo (MonthDay .parse ("--01-03" ));
541
531
}
542
532
533
+
543
534
@ Nested
544
535
class FallbackPatternTests {
545
536
@@ -690,7 +681,6 @@ public static class DateTimeBean {
690
681
691
682
private final List <DateTimeBean > children = new ArrayList <>();
692
683
693
-
694
684
public LocalDate getLocalDate () {
695
685
return this .localDate ;
696
686
}
0 commit comments