Code example for JarEntry

0
    /** 
     * @throws IOException 
     * java.util.jar.JarEntry#JarEntry(java.util.jar.JarEntry) 
     */ 
    public void test_ConstructorLjava_util_jar_JarEntry_on_null() throws IOException { 
        JarEntry newJarEntry = new JarEntry(jarFile.getJarEntry(entryName));
        assertNotNull(newJarEntry);
 
        jarEntry = null;
        try { 
            newJarEntry = new JarEntry(jarEntry);
            fail("Should throw NullPointerException");
        } catch (NullPointerException e) {
            // Expected 
        } 
    } 
 
    /** 
     * java.util.jar.JarEntry#JarEntry(java.util.zip.ZipEntry) 
     */