Code example for ZipEntry

Methods: isDirectory

0
        } 
    } 
 
    private ZipEntry assertFileEntryExists(String entry, JarFile jarFile) {
        ZipEntry jarEntry = jarFile.getEntry(entry);
        assertNotNull("entry '" + entry + " does not exist in " + jarFile.getName(), jarEntry);
        assertFalse("entry '" + entry + " exists in " + jarFile.getName() + " but is a directory",
                jarEntry.isDirectory());
        return jarEntry;
    } 
 
}