Skip to content

Commit

Permalink
Increase coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
hamza-vd committed Aug 9, 2023
1 parent 92b6dfb commit a424fb1
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -95,4 +95,11 @@ public void differenceTest() {
Assert.assertEquals(2, DateUtil.dayDifference(new LocalDate("2019-10-01"), new LocalDate("2019-10-03")));
Assert.assertEquals(1, DateUtil.weekDifference(new LocalDate("2019-09-26"), new LocalDate("2019-10-03")));
}

@Test
public void testSetDefaultDateFormatShouldSSetTheDefaultDateFormatOfDateUtil() {
DateUtil.setDefaultDateFormat("yyyy/MM/dd");
Assert.assertEquals("yyyy/MM/dd", DateUtil.DEFAULT_DATE_FORMAT);
}
}

0 comments on commit a424fb1

Please sign in to comment.