File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
spring-beans/src/test/java/org/springframework/beans/propertyeditors Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -722,15 +722,15 @@ void testCustomBooleanEditorWithEmptyAsNull() {
722
722
723
723
@ Test
724
724
void testCustomDateEditor () {
725
- CustomDateEditor editor = new CustomDateEditor (null , false );
725
+ CustomDateEditor editor = new CustomDateEditor (new SimpleDateFormat ( "MM/dd/yyyy" ) , false );
726
726
editor .setValue (null );
727
727
assertThat (editor .getValue ()).isNull ();
728
728
assertThat (editor .getAsText ()).isEmpty ();
729
729
}
730
730
731
731
@ Test
732
732
void testCustomDateEditorWithEmptyAsNull () {
733
- CustomDateEditor editor = new CustomDateEditor (null , true );
733
+ CustomDateEditor editor = new CustomDateEditor (new SimpleDateFormat ( "MM/dd/yyyy" ) , true );
734
734
editor .setValue (null );
735
735
assertThat (editor .getValue ()).isNull ();
736
736
assertThat (editor .getAsText ()).isEmpty ();
You can’t perform that action at this time.
0 commit comments