BAEL-6644-read-zip-entries (#14321)
* read zip file entries * add unit test * update test code
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
package com.baeldung.zipentries;
|
||||
|
||||
import org.junit.Test;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.net.URISyntaxException;
|
||||
import java.nio.file.Path;
|
||||
import java.nio.file.Paths;
|
||||
|
||||
public class ZipEntryReaderTest {
|
||||
|
||||
@Test
|
||||
public void givenZipFile_thenReadEntriesAndValidateContent() throws URISyntaxException, IOException {
|
||||
Path zipFilePath = Paths.get(getClass().getClassLoader().getResource("zipFile.zip").toURI());
|
||||
ZipEntryReader.readZipEntries(zipFilePath.toString());
|
||||
}
|
||||
}
|
||||
BIN
core-java-modules/core-java-20/src/test/resources/zipFile.zip
Normal file
BIN
core-java-modules/core-java-20/src/test/resources/zipFile.zip
Normal file
Binary file not shown.
Reference in New Issue
Block a user