Code example for InvalidKeyException

Methods: getCause, getMessage

0
                    .getMessage(), msgs[i]);
            assertNull("getCause() must return null", tE.getCause());
        } 
    } 
 
    /** 
     * Test for <code>InvalidKeyException(String)</code> constructor 
     * Assertion: constructs InvalidKeyException when <code>msg</code> is null 
     */ 
    @TestTargetNew( 
        level = TestLevel.PARTIAL_COMPLETE, 
        notes = "", 
        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());
    }