Code example for Permission

Methods: getName

0
                throw new SecurityException(); 
            } 
        } 
    }; 
 
    @Override 
    protected void setUp() { 
        resources = Support_Resources.createTempFolder();
    } 
 
    /** 
     * java.util.jar.JarFile#JarFile(java.io.File) 
     */ 
    public void test_ConstructorLjava_io_File() { 
        try { 
            JarFile jarFile = new JarFile(new File("Wrong.file"));
            fail("Should throw IOException");
        } catch (IOException e) {
            // expected 
        }