Code example for LDAPCertStoreParameters

0
     * Assertion: throws <code>NullPointerException</code> - 
     * if <code>serverName</code> is <code>null</code> 
     */ 
    public final void testLDAPCertStoreParametersString03() { 
        try { 
            new LDAPCertStoreParameters(null);
            fail("NPE expected");
        } catch (NullPointerException e) {
        } 
    } 
 
    /** 
     * Test #1 for <code>LDAPCertStoreParameters(String, int)</code> constructor<br> 
     * Assertion: Creates an instance of <code>LDAPCertStoreParameters</code> 
     * with the specified parameter values 
     */ 
    public final void testLDAPCertStoreParametersStringint01() { 
        CertStoreParameters cp = new LDAPCertStoreParameters("myhost", 1098);
        assertTrue("isLDAPCertStoreParameters",
                cp instanceof LDAPCertStoreParameters);
    }