Skip to content

Commit

Permalink
add more values unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
hboutemy committed May 31, 2021
1 parent b151172 commit 24dfab4
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1441,8 +1441,14 @@ public void testParseOutputTimestamp()
assertThat( archiver.parseOutputTimestamp( "." ) ).isNull();
assertThat( archiver.parseOutputTimestamp( " " ) ).isNull();
assertThat( archiver.parseOutputTimestamp( "_" ) ).isNull();
assertThat( archiver.parseOutputTimestamp( "-" ) ).isNull();
assertThat( archiver.parseOutputTimestamp( "/" ) ).isNull();
assertThat( archiver.parseOutputTimestamp( "!" ) ).isNull();
assertThat( archiver.parseOutputTimestamp( "*" ) ).isNull();

assertThat( archiver.parseOutputTimestamp( "1570300662" ).getTime() ).isEqualTo( 1570300662000L );
assertThat( archiver.parseOutputTimestamp( "0" ).getTime() ).isEqualTo( 0L );
assertThat( archiver.parseOutputTimestamp( "1" ).getTime() ).isEqualTo( 1000L );

assertThat( archiver.parseOutputTimestamp( "2019-10-05T18:37:42Z" ).getTime() ).isEqualTo( 1570300662000L );
assertThat( archiver.parseOutputTimestamp( "2019-10-05T20:37:42+02:00" ).getTime() ).isEqualTo(
Expand Down

0 comments on commit 24dfab4

Please # to comment.