Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
srikanth-lingala committed Nov 4, 2019
1 parent ca5e6f6 commit 19815ec
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/java/net/lingala/zip4j/headers/HeaderReader.java
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ private EndOfCentralDirectoryRecord readEndOfCentralDirectoryRecord(RandomAccess
!= HeaderSignature.END_OF_CENTRAL_DIRECTORY.getValue()) && counter <= 3000);

if (headerSignature != HeaderSignature.END_OF_CENTRAL_DIRECTORY.getValue()) {
throw new ZipException("zip headers not found. probably not a zip file");
throw new ZipException("Zip headers not found. Probably not a zip file");
}

endOfCentralDirectoryRecord.setSignature(HeaderSignature.END_OF_CENTRAL_DIRECTORY);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public void testReadAllWithoutEndOfCentralDirectoryRecordThrowsException() throw
headerReader.readAllHeaders(randomAccessFile, null);
fail("Should throw an exception");
} catch (ZipException e) {
assertThat(e.getMessage()).isEqualTo("Zip headers not found. Probably not a zip file or a corrupted zip file");
assertThat(e.getMessage()).isEqualTo("Zip headers not found. Probably not a zip file");
}
}

Expand Down

0 comments on commit 19815ec

Please sign in to comment.