Code example for LDAPCertStoreParameters

Methods: toString

0
     * Test for <code>toString()</code> method<br> 
     * Assertion: returns the formatted string describing parameters 
     */ 
    public final void testToString() { 
        LDAPCertStoreParameters cp1 =
            new LDAPCertStoreParameters("myhost", 1101);
 
        assertNotNull(cp1.toString());
    } 
 
    /** 
     * Test for <code>toString()</code> method<br> 
     * Assertion: returns the port number 
     */ 
    public final void testGetPort() { 
        int portNumber = -1099;
        LDAPCertStoreParameters cp =
            new LDAPCertStoreParameters("serverName", portNumber);
        assertTrue(cp.getPort() == portNumber);
    }