Code example for CollectionCertStoreParameters

Methods: clone, getCollection

0
     * Assertion: ...only a reference to the <code>Collection</code> 
     * is copied, and not the contents 
     */ 
    public final void testClone03() { 
        CollectionCertStoreParameters cp1 =
            new CollectionCertStoreParameters();
        CollectionCertStoreParameters cp2 =
            (CollectionCertStoreParameters)cp1.clone();
        CollectionCertStoreParameters cp3 =
            (CollectionCertStoreParameters)cp2.clone();
        // check that all objects hold the same reference 
        assertTrue(cp1.getCollection() == cp2.getCollection() &&
                   cp3.getCollection() == cp2.getCollection());
    } 
 
    /** 
     * Test #1 for <code>toString()</code> method<br> 
     * Assertion: returns the formatted string describing parameters 
     */ 
    public final void testToString01() { 
        CollectionCertStoreParameters cp =