Code example for LDAPCertStoreParameters

0
     * Test #1 for <code>LDAPCertStoreParameters(String)</code> constructor<br> 
     * Assertion: Creates an instance of <code>LDAPCertStoreParameters</code> 
     * with the specified server name and a default port of 389 
     */ 
    public final void testLDAPCertStoreParametersString01() { 
        CertStoreParameters cp = new LDAPCertStoreParameters("myhost");
        assertTrue("isLDAPCertStoreParameters",
                cp instanceof LDAPCertStoreParameters);
    } 
 
    /** 
     * Test #2 for <code>LDAPCertStoreParameters(String)</code> constructor<br> 
     * Assertion: Creates an instance of <code>LDAPCertStoreParameters</code> 
     * with the specified server name and a default port of 389 
     */ 
    public final void testLDAPCertStoreParametersString02() { 
        String serverName = "myhost";
        LDAPCertStoreParameters cp = new LDAPCertStoreParameters(serverName);
        assertTrue("host", serverName.equals(cp.getServerName()));
        assertEquals("port", 389, cp.getPort());
    }