Code example for PKIXParameters

Methods: getCertStores

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