Code example for Adler32

Methods: getValue, reset, update

0
     */ 
    @TestTargetNew( 
        level = TestLevel.COMPLETE, 
        notes = "", 
        method = "Adler32", 
        args = {} 
    ) 
    public void test_Constructor() { 
        // test method of java.util.zip.Adler32() 
        Adler32 adl = new Adler32();
        assertEquals("Constructor of adl32 failed", 1, adl.getValue());
    } 
 
    /** 
     * @tests java.util.zip.Adler32#getValue() 
     */ 
    @TestTargetNew( 
        level = TestLevel.COMPLETE, 
        notes = "", 
        method = "getValue", 
        args = {} 
    ) 
    public void test_getValue() { 
        // test methods of java.util.zip.getValue() 
        Adler32 adl = new Adler32();
        assertEquals(
                "GetValue should return a zero as a result of construction an object of Adler32", 
                1, adl.getValue());
 
        adl.reset();