Code example for InflaterOutputStream

0
 
    /** 
     * @tests java.util.zip.InflaterOutputStream#InflaterOutputStream(java.io.OutputStream) 
     */ 
    public void test_ConstructorLjava_io_OutputStream() throws IOException { 
        new InflaterOutputStream(os);
 
        try { 
            new InflaterOutputStream(null);
            fail("Should throw NullPointerException");
        } catch (NullPointerException e) {
            // expected 
        } 
    } 
 
    /** 
     * @tests java.util.zip.InflaterOutputStream#InflaterOutputStream(java.io.OutputStream,Inflater) 
     */ 
    public void test_ConstructorLjava_io_OutputStreamLjava_util_zip_Inflater() { 
        new InflaterOutputStream(os, new Inflater());