Code example for CertificateEncodingException

Methods: getCause, getMessage

0
        method = "CertificateEncodingException", 
        args = {java.lang.String.class}
    ) 
    public void testCertificateEncodingException03() { 
        String msg = null;
        CertificateEncodingException tE = new CertificateEncodingException(msg);
        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 null 
     */ 
    @TestTargetNew( 
        level = TestLevel.PARTIAL_COMPLETE, 
        notes = "Verifies null as a parameter.", 
        method = "CertificateEncodingException", 
        args = {java.lang.Throwable.class}
    )