Code example for InvalidKeyException

Methods: getCause, getMessage

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