Code example for CertificateEncodingException

Methods: getCause, getMessage

0
     * Test for <code>CertificateEncodingException(String, Throwable)</code> 
     * constructor Assertion: constructs CertificateEncodingException when 
     * <code>cause</code> is null <code>msg</code> is null 
     */ 
    public void testCertificateEncodingException06() { 
        CertificateEncodingException tE = new CertificateEncodingException(
                null, null); 
        assertNull("getMessage() must return null", tE.getMessage());
        assertNull("getCause() must return null", tE.getCause());
    } 
 
    /** 
     * Test for <code>CertificateEncodingException(String, Throwable)</code> 
     * constructor Assertion: constructs CertificateEncodingException when 
     * <code>cause</code> is null <code>msg</code> is not null 
     */ 
    public void testCertificateEncodingException07() { 
        CertificateEncodingException tE;
        for (int i = 0; i < msgs.length; i++) {
            tE = new CertificateEncodingException(msgs[i], null);
            assertEquals("getMessage() must return: ".concat(msgs[i]), tE