Code example for ShortBufferException

Methods: getCause, getMessage

0
    @TestTargetNew( 
        level = TestLevel.COMPLETE, 
        notes = "", 
        method = "ShortBufferException", 
        args = {java.lang.String.class}
    ) 
    public void testShortBufferException02() { 
        ShortBufferException tE;
        for (int i = 0; i < msgs.length; i++) {
            tE = new ShortBufferException(msgs[i]);
            assertEquals("getMessage() must return: ".concat(msgs[i]), tE
                    .getMessage(), msgs[i]);
            assertNull("getCause() must return null", tE.getCause());
        } 
    } 
 
    /** 
     * Test for <code>ShortBufferException(String)</code> constructor 
     * Assertion: constructs ShortBufferException when <code>msg</code> is 
     * null 
     */