Code example for PKIXParameters

Methods: getCertPathCheckers

0
        Set taSet = TestUtils.getTrustAnchorSet();
        if (taSet == null) {
            fail(getName() + ": not performed (could not create test TrustAnchor set)");
        } 
 
        PKIXParameters p = new PKIXParameters(taSet);
        List l = p.getCertPathCheckers();
        assertNotNull("notNull", l);
        assertTrue("isEmpty",l.isEmpty());
    } 
 
    /** 
     * Test #2 for <code>getCertPathCheckers()</code> method<br> 
     * Assertion: returns an immutable <code>List</code> 
     * of <code>PKIXCertPathChecker</code>s 
     * @throws InvalidAlgorithmParameterException 
     */ 
    public final void testGetCertPathCheckers02() throws Exception { 
        Set taSet = TestUtils.getTrustAnchorSet();
        if (taSet == null) {
            fail(getName() + ": not performed (could not create test TrustAnchor set)");