Code example for LDAPCertStoreParameters

Methods: getPort

0
     * Assertion: returns the port number 
     */ 
    public final void testGetPort() { 
        int portNumber = -1099;
        LDAPCertStoreParameters cp =
            new LDAPCertStoreParameters("serverName", portNumber);
        assertTrue(cp.getPort() == portNumber);
    } 
 
    /** 
     * Test for <code>toString()</code> method<br> 
     * Assertion: returns the server name (never <code>null</code>) 
     */ 
    public final void testGetServerName() { 
        LDAPCertStoreParameters cp =
            new LDAPCertStoreParameters("serverName");
        assertNotNull(cp.getServerName());
    } 
 
} 
Connect your IDE to all the code out there  Get Codota for Java