Code example for ZipFile

Methods: getName

0
        try { 
            zentry = zfile.getEntry("File2.txt");
            fail("IllegalStateException expected"); // Android fails here!
        } catch (IllegalStateException ee) {
            // expected 
        } 
    } 
 
    /** 
     * @throws IOException 
     * @tests java.util.zip.ZipFile#getInputStream(java.util.zip.ZipEntry) 
     */ 
    @TestTargetNew( 
        level = TestLevel.COMPLETE, 
        notes = "", 
        method = "getInputStream", 
        args = {java.util.zip.ZipEntry.class}
    ) 
    public void test_getInputStreamLjava_util_zip_ZipEntry() throws IOException { 
        // Test for method java.io.InputStream 
        // java.util.zip.ZipFile.getInputStream(java.util.zip.ZipEntry)