File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed
xmpbox/src/test/java/org/apache/xmpbox Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -60,21 +60,18 @@ void testDateConversion() throws IOException
6060
6161 assertThrows (IOException .class , () -> DateConverter .toCalendar ("123" ));
6262
63- //Test missing seconds
63+ // Test missing seconds
6464 assertEquals (DateConverter .toCalendar ("2015-12-08T12:07:00-05:00" ),
6565 DateConverter .toCalendar ("2015-12-08T12:07-05:00" ));
6666 assertEquals (DateConverter .toCalendar ("2011-11-20T10:09:00Z" ),
6767 DateConverter .toCalendar ("2011-11-20T10:09Z" ));
6868
6969 // Test some time zone offsets
70- String testString1 = "" ;
71- String testString2 = "" ;
72-
7370 DateTimeFormatter dateTimeFormatter = DateTimeFormatter .ofPattern ("yyyy-MM-dd'T'HH:mm[:ss][.SSS][XXX]" );
7471
7572 //Test missing seconds
76- testString1 = "2015-12-08T12:07:00-05:00" ;
77- testString2 = "2015-12-08T12:07-05:00" ;
73+ String testString1 = "2015-12-08T12:07:00-05:00" ;
74+ String testString2 = "2015-12-08T12:07-05:00" ;
7875
7976 assertEquals (DateConverter .toCalendar (testString1 ), DateConverter .toCalendar (testString2 ));
8077 assertEquals (DateConverter .toCalendar (testString1 ).toInstant (),ZonedDateTime .parse (testString1 , dateTimeFormatter ).toInstant ());
You can’t perform that action at this time.
0 commit comments