Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -816,6 +816,12 @@ void testFixedEntryModificationTime() throws IOException {
assertEquals(almostMinDosTime, zf.getEntry("file-with-odd-time.txt").getTime());
assertEquals(almostMinDosTime, zf.getEntry("foo/").getTime());
}

final File zipFile1970 = getTestFile("target/output/zip-with-fixed-entry-modification-times-1970.zip");
final ZipArchiver archiver1970 = getZipArchiver(zipFile1970);
archiver1970.setLastModifiedTime(FileTime.fromMillis(0));
archiver1970.addDirectory(new File("src/test/resources/zip-timestamp"));
archiver1970.createArchive();
}

@Test
Expand Down
Loading