Code example for CertPathBuilderException

Methods: getCausegetMessage

0
     * 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());
    } 
 
    /** 
     * Test for <code>CertPathBuilderException(Throwable)</code> constructor 
     * Assertion: constructs CertPathBuilderException when <code>cause</code> 
     * is not null 
     */ 
    public void testCertPathBuilderException05() { 
        CertPathBuilderException tE = new CertPathBuilderException(tCause);
        if (tE.getMessage() != null) {
            String toS = tCause.toString();
            String getM = tE.getMessage();
Experience pair programming with AI  Get Codota for Java