Code example for CertificateEncodingException

Methods: getCause, getMessage

0
        args = {java.lang.Throwable.class}
    ) 
    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());
    } 
 
    /** 
     * Test for <code>CertificateEncodingException(Throwable)</code> 
     * constructor Assertion: constructs CertificateEncodingException when 
     * <code>cause</code> is not null 
     */ 
    @TestTargetNew( 
        level = TestLevel.PARTIAL_COMPLETE, 
        notes = "", 
        method = "CertificateEncodingException", 
        args = {java.lang.Throwable.class}
    )