Code example for CertPathValidatorException

Methods: getCausegetMessagegetCertPathgetIndex

0
     * constructor Assertion: constructs CertPathValidatorException when 
     * <code>cause</code> is null <code>msg</code> is null 
     * <code>certPath</code> is null <code>index</code> is -1 
     */ 
    public void testCertPathValidatorException10() { 
        CertPathValidatorException tE = new CertPathValidatorException(null,
                null, null, -1); 
        assertNull("getMessage() must return null", tE.getMessage());
        assertNull("getCause() must return null", tE.getCause());
        assertNull("getCertPath() must return null", tE.getCertPath());
        assertEquals("getIndex() must be -1", tE.getIndex(), -1);
    } 
 
    /** 
     * Test for 
     * <code>CertPathValidatorException(String, Throwable, CertPath, int)</code> 
     * constructor Assertion: constructs CertPathValidatorException when 
     * <code>cause</code> is null <code>msg</code> is null 
     * <code>certPath</code> is null <code>index</code> not -1 throws: 
     * IllegalArgumentException 
     */