Code example for InvalidKeyException

Methods: getCause, getMessage

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