Code example for UnrecoverableKeyException

Methods: getCause, getMessage

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