Code example for PKIXParameters

Methods: getInitialPoliciessetInitialPolicies

0
        Set taSet = TestUtils.getTrustAnchorSet();
        if (taSet == null) {
            fail(getName() + ": not performed (could not create test TrustAnchor set)");
        } 
 
        PKIXParameters p = new PKIXParameters(taSet);
        p.setInitialPolicies(null);
        assertTrue(p.getInitialPolicies().isEmpty());
    } 
 
    /** 
     * Test #3 for <code>setInitialPolicies(Set)</code> method<br> 
     * Assertion: <code>Set</code> may be empty 
     */ 
    public final void testSetInitialPolicies03() throws Exception { 
        Set taSet = TestUtils.getTrustAnchorSet();
        if (taSet == null) {
            fail(getName() + ": not performed (could not create test TrustAnchor set)");
        }