Code example for CertPathBuilderException

Methods: getCause, getMessage

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