Code example for Inflater

Methods: getRemaining, reset, setInput

0
        notes = "", 
        method = "setInput", 
        args = {byte[].class} 
    ) 
    public void test_setInput$B() { 
        // test method of java.util.zip.inflater.setInput(byte) 
        byte byteArray[] = {2, 3, 4, 't', 'y', 'u', 'e', 'w', 7, 6, 5, 9};
        Inflater inflate = new Inflater();
        inflate.setInput(byteArray);
        assertTrue("setInputB did not deliver any byte to the input buffer",
                inflate.getRemaining() != 0);
    } 
 
    /** 
     * @tests java.util.zip.Inflater#setInput(byte[], int, int) 
     */ 
    @TestTargetNew( 
        level = TestLevel.COMPLETE, 
        notes = "", 
        method = "setInput", 
        args = {byte[].class, int.class, int.class}