Code example for JarFile

Methods: close, getManifest

0
            jF.close();
            jF.getManifest();
            fail("FAILED: expected IllegalStateException");
        } catch (IllegalStateException ise) {
            // expected; 
        } catch (Exception e) {
            fail("Exception during 4th test: " + e.toString());
        } 
 
        Support_Resources.copyFile(resources, null, "Broken_manifest.jar");
        JarFile jf;
        try { 
            jf = new JarFile(new File(resources, "Broken_manifest.jar"));
            jf.getManifest();
            fail("IOException expected.");
        } catch (IOException e) {
            // expected. 
        } 
    } 
 
    /**