Code example for CertificateParsingException

Methods: getCause, getMessage

0
            assertNull("getCause() must return null", tE.getCause());
        } 
    } 
 
    /** 
     * Test for <code>CertificateParsingException(String)</code> constructor 
     * Assertion: constructs CertificateParsingException when <code>msg</code> 
     * is null 
     */ 
    @TestTargetNew( 
        level = TestLevel.PARTIAL_COMPLETE, 
        notes = "Verifies null as a parameter.", 
        method = "CertificateParsingException", 
        args = {java.lang.String.class}
    ) 
    public void testCertificateParsingException03() { 
        String msg = null;
        CertificateParsingException tE = new CertificateParsingException(msg);
        assertNull("getMessage() must return null.", tE.getMessage());
        assertNull("getCause() must return null", tE.getCause());
    }