Code example for SignatureException

Methods: getCause, getMessage

0
     * Test for <code>SignatureException(Throwable)</code> constructor 
     * Assertion: constructs SignatureException when <code>cause</code> is 
     * null 
     */ 
    @TestTargetNew( 
        level = TestLevel.COMPLETE, 
        notes = "", 
        method = "SignatureException", 
        args = {java.lang.Throwable.class}
    ) 
    public void testSignatureException04() { 
        Throwable cause = null;
        SignatureException tE = new SignatureException(cause);
        assertNull("getMessage() must return null.", tE.getMessage());
        assertNull("getCause() must return null", tE.getCause());
    } 
 
    /** 
     * Test for <code>SignatureException(Throwable)</code> constructor 
     * Assertion: constructs SignatureException when <code>cause</code> is not 
     * null