Code example for CertificateParsingException

Methods: getCause, getMessage

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