Code example for MGF1ParameterSpec

Methods: getDigestAlgorithm

0
     * Assertion: <code>NullPointerException</code> if parameter is <code>null</code> 
     */ 
    @TestTargetNew( 
        level = TestLevel.PARTIAL_COMPLETE, 
        notes = "", 
        method = "MGF1ParameterSpec", 
        args = {java.lang.String.class}
    ) 
    public final void testMGF1ParameterSpec02() { 
        try { 
            new MGF1ParameterSpec(null);
            fail("NullPointerException has not been thrown");
        } catch (NullPointerException ok) {
            //expected 
        } 
    } 
 
    /** 
     * Test for <code>getDigestAlgorithm</code> method<br> 
     * Assertion: returns the algorithm name of the message 
     * digest used by the mask generation function