Code example for IllegalBlockSizeException

Methods: getCause, getMessage

0
    public IllegalBlockSizeExceptionTest(String arg0) {
        super(arg0);
    } 
 
    static String[] msgs = {
            "", 
            "Check new message", 
            "Check new message Check new message Check new message Check new message Check new message" }; 
 
    static Throwable tCause = new Throwable("Throwable for exception");
 
    /** 
     * Test for <code>IllegalBlockSizeException()</code> constructor 
     * Assertion: constructs IllegalBlockSizeException with no detail message 
     */ 
    public void testIllegalBlockSizeException01() { 
        IllegalBlockSizeException tE = new IllegalBlockSizeException();
        assertNull("getMessage() must return null.", tE.getMessage());
        assertNull("getCause() must return null", tE.getCause());
    }