Code example for JarEntry

Methods: getNamegetSize

0
     */ 
    public void test_ConstructorLjava_util_zip_ZipEntry() { 
        assertNotNull("Jar file is null", jarFile);
        zipEntry = jarFile.getEntry(entryName);
        assertNotNull("Zip entry is null", zipEntry);
        jarEntry = new JarEntry(zipEntry);
        assertNotNull("Jar entry is null", jarEntry);
        assertEquals("Wrong entry constructed--wrong name", entryName, jarEntry
                .getName());
        assertEquals("Wrong entry constructed--wrong size", 311, jarEntry
                .getSize());
    } 
 
    /** 
     * java.util.jar.JarEntry#getAttributes() 
     */ 
    public void test_getAttributes() { 
        JarFile attrJar = null;
        File file = null;
 
        Support_Resources.copyFile(resources, null, "Broken_manifest.jar");