Code example for InvalidAlgorithmParameterException

Methods: getCause, getMessage

0
    } 
 
    /** 
     * Test for <code>InvalidAlgorithmParameterException(String)</code> 
     * constructor Assertion: constructs InvalidAlgorithmParameterException when 
     * <code>msg</code> is null 
     */ 
    @TestTargetNew( 
        level = TestLevel.PARTIAL_COMPLETE, 
        notes = "", 
        method = "InvalidAlgorithmParameterException", 
        args = {java.lang.String.class}
    ) 
    public void testInvalidAlgorithmParameterException03() { 
        String msg = null;
        InvalidAlgorithmParameterException tE = new InvalidAlgorithmParameterException(
                msg);
        assertNull("getMessage() must return null.", tE.getMessage());
        assertNull("getCause() must return null", tE.getCause());
    }