Skip to content

Commit

Permalink
Add GzipParameters.getModificationInstant()
Browse files Browse the repository at this point in the history
Add GzipParameters.setModificationInstant(Instant)
  • Loading branch information
garydgregory committed Nov 6, 2024
1 parent 25e9cb3 commit 091ac63
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,9 @@ public void testMetadataRoundTrip() throws Exception {

final GzipParameters parameters = new GzipParameters();
parameters.setCompressionLevel(Deflater.BEST_COMPRESSION);
assertEquals(0, parameters.getModificationTime());
parameters.setModificationInstant(null);
assertEquals(0, parameters.getModificationTime());
parameters.setModificationInstant(MTIME);
assertEquals(MTIME.getEpochSecond(), parameters.getModificationTime());
assertEquals(MTIME, parameters.getModificationInstant());
Expand Down

0 comments on commit 091ac63

Please sign in to comment.