Code example for CertPathValidatorException

Methods: getCausegetMessage

0
     * Assertion: constructs CertPathValidatorException when <code>msg</code> 
     * is null 
     */ 
    public void testCertPathValidatorException03() { 
        String msg = null;
        CertPathValidatorException tE = new CertPathValidatorException(msg);
        assertNull("getMessage() must return null.", tE.getMessage());
        assertNull("getCause() must return null", tE.getCause());
    } 
 
    /** 
     * Test for <code>CertPathValidatorException(Throwable)</code> constructor 
     * Assertion: constructs CertPathValidatorException when <code>cause</code> 
     * is null 
     */ 
    public void testCertPathValidatorException04() { 
        Throwable cause = null;
        CertPathValidatorException tE = new CertPathValidatorException(cause);
        assertNull("getMessage() must return null.", tE.getMessage());
        assertNull("getCause() must return null", tE.getCause());