Code example for BadPaddingException

Methods: getCause, getMessage

0
        level = TestLevel.COMPLETE, 
        notes = "", 
        method = "BadPaddingException", 
        args = {} 
    ) 
    public void testBadPaddingException01() { 
        BadPaddingException tE = new BadPaddingException();
        assertNull("getMessage() must return null.", tE.getMessage());
        assertNull("getCause() must return null", tE.getCause());
    } 
 
    /** 
     * Test for <code>BadPaddingException(String)</code> constructor 
     * Assertion: constructs BadPaddingException with detail message msg. 
     * Parameter <code>msg</code> is not null. 
     */ 
    @TestTargetNew( 
        level = TestLevel.COMPLETE, 
        notes = "", 
        method = "BadPaddingException", 
        args = {java.lang.String.class}