Code example for DeflaterInputStream

0
    public void testDeflaterInputStreamInputStreamDeflater() { 
        // ok 
        new DeflaterInputStream(is, new Deflater());
        // fail 
        try { 
            new DeflaterInputStream(is, null);
            fail("should throw NullPointerException");
        } catch (NullPointerException e) {
            // expected 
        } 
        try { 
            new DeflaterInputStream(null, new Deflater());
            fail("should throw NullPointerException");
        } catch (NullPointerException e) {
            // expected 
        } 
    } 
 
    /** 
     * @tests DeflaterInputStream#DeflaterInputStream(InputStream,Deflater,int) 
     */