Code example for DigestInputStream

0
    } 
 
    /** 
     * Test #2 for <code>DigestInputStream</code> constructor<br> 
     *  
     * Assertion: creates new <code>DigestInputStream</code> instance 
     * using valid parameters (both <code>null</code>) 
     */ 
    @TestTargetNew( 
        level = TestLevel.PARTIAL, 
        notes = "Verifies both null parameters. Need cases where just one parameter null", 
        method = "DigestInputStream", 
        args = {java.io.InputStream.class, java.security.MessageDigest.class}
    ) 
    public final void testDigestInputStream02() { 
        InputStream dis = new DigestInputStream(null, null);
        assertTrue(dis instanceof DigestInputStream);
    } 
 
    /** 
     * Test #1 for <code>read()</code> method<br>