Skip to content

Commit

Permalink
Improve Dateutils code coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
teryk committed Nov 26, 2015
1 parent df60565 commit 6e8c98e
Showing 1 changed file with 6 additions and 0 deletions.
Expand Up @@ -102,6 +102,12 @@ public void shouldFormatDateTime() {
assertThat(DateUtils.formatDateTime(new Date()).length()).isGreaterThan(20);
}

@Test
public void shouldFormatDateTime_with_long() {
assertThat(DateUtils.formatDateTime(System.currentTimeMillis())).startsWith("20");
assertThat(DateUtils.formatDateTime(System.currentTimeMillis()).length()).isGreaterThan(20);
}

@Test
public void format_date_time_null_safe() {
assertThat(DateUtils.formatDateTimeNullSafe(new Date())).startsWith("20");
Expand Down

0 comments on commit 6e8c98e

Please sign in to comment.