Skip to content

Commit 5fcfc7c

Browse files
committed
Remove compression tests, as this is covered elsewhere in the suites now
1 parent 13106f8 commit 5fcfc7c

File tree

2 files changed

+4
-35
lines changed

2 files changed

+4
-35
lines changed

src/test/java/software/coley/llzip/CompressionTests.java

Lines changed: 0 additions & 35 deletions
This file was deleted.

src/test/java/software/coley/llzip/PartParseTests.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,12 @@ public void testConcatAndMerged(String name) {
8787
assertNotEquals(zipJvm.getEnd(), zipStd.getEnd());
8888
assertTrue(hasFile(zipJvm, "META-INF/MANIFEST.MF"));
8989
assertTrue(hasFile(zipJvm, "Hello.class"));
90+
91+
// Assert that the standard ZIP reader read the 'first' version of the class
92+
// and the JVM reader read the 'second' version of the class.
9093
LocalFileHeader stdHello = zipStd.getLocalFileByName("Hello.class");
9194
LocalFileHeader jvmHello = zipJvm.getLocalFileByName("Hello.class");
95+
assertNotEquals(stdHello, jvmHello);
9296
String stdHelloRaw = ByteDataUtil.toString(ZipCompressions.decompress(stdHello));
9397
String jvmHelloRaw = ByteDataUtil.toString(ZipCompressions.decompress(jvmHello));
9498
assertTrue(stdHelloRaw.contains("Hello world"));

0 commit comments

Comments
 (0)