Code example for CertificateException

Methods: getCausegetMessage

0
     * Assertion: constructs CertificateException when <code>msg</code> is 
     * null 
     */ 
    public void testCertificateException03() { 
        String msg = null;
        CertificateException tE = new CertificateException(msg);
        assertNull("getMessage() must return null.", tE.getMessage());
        assertNull("getCause() must return null", tE.getCause());
    } 
 
    /** 
     * Test for <code>CertificateException(Throwable)</code> constructor 
     * Assertion: constructs CertificateException when <code>cause</code> is 
     * null 
     */ 
    public void testCertificateException04() { 
        Throwable cause = null;
        CertificateException tE = new CertificateException(cause);
        assertNull("getMessage() must return null.", tE.getMessage());
        assertNull("getCause() must return null", tE.getCause());
    }