Code example for CertPathBuilderException

Methods: getCausegetMessage

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