Code example for CertificateParsingException

Methods: getCausegetMessage

0
    /** 
     * Test for <code>CertificateParsingException()</code> constructor 
     * Assertion: constructs CertificateParsingException with no detail message 
     */ 
    public void testCertificateParsingException01() { 
        CertificateParsingException tE = new CertificateParsingException();
        assertNull("getMessage() must return null.", tE.getMessage());
        assertNull("getCause() must return null", tE.getCause());
    } 
 
    /** 
     * Test for <code>CertificateParsingException(String)</code> constructor 
     * Assertion: constructs CertificateParsingException with detail message 
     * msg. Parameter <code>msg</code> is not null. 
     */ 
    public void testCertificateParsingException02() { 
        CertificateParsingException tE;
        for (int i = 0; i < msgs.length; i++) {
            tE = new CertificateParsingException(msgs[i]);
            assertEquals("getMessage() must return: ".concat(msgs[i]), tE