From 19815ec689bfe01837104387689fa6b198d9e780 Mon Sep 17 00:00:00 2001 From: Srikanth Reddy Lingala Date: Mon, 4 Nov 2019 21:33:08 +0100 Subject: [PATCH] Fix test --- src/main/java/net/lingala/zip4j/headers/HeaderReader.java | 2 +- src/test/java/net/lingala/zip4j/headers/HeaderReaderIT.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/net/lingala/zip4j/headers/HeaderReader.java b/src/main/java/net/lingala/zip4j/headers/HeaderReader.java index f829fa81..55691574 100755 --- a/src/main/java/net/lingala/zip4j/headers/HeaderReader.java +++ b/src/main/java/net/lingala/zip4j/headers/HeaderReader.java @@ -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); diff --git a/src/test/java/net/lingala/zip4j/headers/HeaderReaderIT.java b/src/test/java/net/lingala/zip4j/headers/HeaderReaderIT.java index 022f3201..97e485ea 100644 --- a/src/test/java/net/lingala/zip4j/headers/HeaderReaderIT.java +++ b/src/test/java/net/lingala/zip4j/headers/HeaderReaderIT.java @@ -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"); } }