Code example for DeflaterInputStream

0
    /** 
     * @tests DeflaterInputStream#DeflaterInputStream(InputStream) 
     */ 
    public void testDeflaterInputStreamInputStream() { 
        // ok 
        new DeflaterInputStream(is);
        // fail 
        try { 
            new DeflaterInputStream(null);
            fail("should throw NullPointerException");
        } catch (NullPointerException e) {
            // expected 
        } 
    } 
 
    /** 
     * @tests DataFormatException#DataFormatException() 
     */ 
    public void testDataFormatException() { 
        new DataFormatException();
Stop searching for code, let great code find you!  Add Codota to your java IDE