Code example for CollectionCertStoreParameters

Methods: getCollection

0
     * Test #2 for <code>CollectionCertStoreParameters</code> constructor<br> 
     * Assertion: Creates an instance of CollectionCertStoreParameters 
     * with the default parameter values (an empty and immutable Collection)  
     */ 
    public final void testCollectionCertStoreParameters02() { 
        CollectionCertStoreParameters cp = new CollectionCertStoreParameters();
        Collection c = cp.getCollection();
        assertTrue("isEmpty", c.isEmpty());
 
        // check that empty collection is immutable 
        try { 
            // try to modify it 
            c.add(new Object());
            fail("empty collection must be immutable");
        } catch (Exception e) {
        } 
    } 
 
    /** 
     * Test #1 for <code>CollectionCertStoreParameters(Collection)</code> 
     * constructor<br>