Code example for InflaterOutputStream

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