Code example for DigestOutputStream

Methods: getMessageDigest

0
        assertNull(dos.myOutputStream());
        assertNotNull(dos.myMessageDigest());
         
        dos = new MyDigestOutputStream(out, null);
        assertNotNull(dos.myOutputStream());
        assertNull(dos.myMessageDigest());
    } 
 
    /** 
     * @tests java.security.DigestOutputStream#getMessageDigest() 
     */ 
    @TestTargetNew( 
        level = TestLevel.COMPLETE, 
        notes = "", 
        method = "getMessageDigest", 
        args = {} 
    ) 
    public void test_getMessageDigest() { 
 
        MessageDigest digest = new MyMessageDigest1();
        OutputStream out = new MyOutputStream();