File tree Expand file tree Collapse file tree 2 files changed +4
-35
lines changed
src/test/java/software/coley/llzip Expand file tree Collapse file tree 2 files changed +4
-35
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff 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" ));
You can’t perform that action at this time.
0 commit comments