Code example for ShortBufferException

Methods: getCause, getMessage

0
            "", 
            "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>ShortBufferException()</code> constructor Assertion: 
     * constructs ShortBufferException with no detail message 
     */ 
    @TestTargetNew( 
        level = TestLevel.COMPLETE, 
        notes = "", 
        method = "ShortBufferException", 
        args = {} 
    ) 
    public void testShortBufferException01() { 
        ShortBufferException tE = new ShortBufferException();
        assertNull("getMessage() must return null.", tE.getMessage());
        assertNull("getCause() must return null", tE.getCause());
    }