Code example for LDAPCertStoreParameters

Methods: getPortgetServerName

0
     * Test #2 for <code>LDAPCertStoreParameters()</code> constructor<br> 
     * Assertion: Creates an instance of <code>LDAPCertStoreParameters</code> 
     * with the default parameter values (server name "localhost", port 389) 
     */ 
    public final void testLDAPCertStoreParameters02() { 
        LDAPCertStoreParameters cp = new LDAPCertStoreParameters();
        assertEquals("host", "localhost", cp.getServerName());
        assertEquals("port", 389, cp.getPort());
    } 
 
    /** 
     * 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);
    } 
Experience pair programming with AI  Get Codota for Java