Examples of PersonDirInfo


Examples of org.jasig.portal.services.persondir.support.legacy.PersonDirInfo

    /**
     * Test that properly identifies JDBC PersonDirInfo entries.
     */
    public void testJdbcRef() {
        PersonDirInfo pdi = new PersonDirInfo();
        pdi.setResRefName("rdbmservices_managed_datasource");
        assertTrue(pdi.isJdbc());
        assertFalse(pdi.isLdap());
    }
View Full Code Here

Examples of org.jasig.portal.services.persondir.support.legacy.PersonDirInfo

    /**
     * Test that JDBC configured within PersonDirInfo is properly identified
     * as JDBC.
     */
    public void testJdbcUrl() {
        PersonDirInfo pdi = new PersonDirInfo();
        pdi.setUrl("jdbc://someserver:45");
        assertTrue(pdi.isJdbc());
        assertFalse(pdi.isLdap());
    }
View Full Code Here

Examples of org.jasig.portal.services.persondir.support.legacy.PersonDirInfo

    /**
     * Test that properly identifies references to LdapServices configured
     * LDAP servers as LDAP servers.
     */
    public void testLdapRef() {
        PersonDirInfo pdi = new PersonDirInfo();
        pdi.setLdapRefName("ldapservices_managed_ldap");
        assertTrue(pdi.isLdap());
        assertFalse(pdi.isJdbc());
    }
View Full Code Here

Examples of org.jasig.portal.services.persondir.support.legacy.PersonDirInfo

   
    /**
     * Test that properly identifies LDAP urls as LDAP server entries.
     */
    public void testLdapUrl() {
        PersonDirInfo pdi = new PersonDirInfo();
        pdi.setUrl("ldap://someserver");
        assertTrue(pdi.isLdap());
        assertFalse(pdi.isJdbc());
    }
View Full Code Here

Examples of org.jasig.portal.services.persondir.support.legacy.PersonDirInfo

    /**
     * Test that the validate() method of an entirely new PDI
     * throws IllegalStateException.
     */
    public void testValidateBare() {
        PersonDirInfo pdi = new PersonDirInfo();
        assertNotNull(pdi.validate());
    }
View Full Code Here

Examples of org.jasig.portal.services.persondir.support.legacy.PersonDirInfo

    /**
     * Test that a PersonDirInfo which has no uid query set throws
     * IllegalStateException on validation attempt.
     */
    public void testValidateNoUid() {
        PersonDirInfo pdi = new PersonDirInfo();
        pdi.setLdapRefName("someserver");
        assertNotNull(pdi.validate());
    }
View Full Code Here

Examples of org.jasig.portal.services.persondir.support.legacy.PersonDirInfo

    /**
     * Test that setting ldapRef after setting the url results in IllegalStateException.
     */
    public void testSetUrlAndLdapRef() {
        PersonDirInfo pdi = new PersonDirInfo();
        pdi.setUrl("jdbc://someserver:45");
        try {
            pdi.setLdapRefName("foo");
        } catch (IllegalStateException ise) {
            // good
            return;
        }
        fail("Should have thrown ISE when trying to set refname on a " +
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.