Code example for CertificateEncodingException

Methods: getCause, getMessage

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