| org.jasig.portal.services.persondir.support.legacy.PersonDirXmlParserTest
PersonDirXmlParserTest | public class PersonDirXmlParserTest extends TestCase (Code) | | Testcase for PersonDirXmlParser.
author: andrew.petro@yale.edu version: $Revision: 35108 $ $Date: 2004-12-03 08:07:53 -0700 (Fri, 03 Dec 2004) $ |
Method Summary | |
static PersonDirInfo | getJdbcPersonDirInfo() Get a PersonDirInfo representing a query against a directly-configured
JDBC attribute source. | static PersonDirInfo | getJdbcRefPersonDirInfo() Obtain an example PersonDirInfo which represents using a query against
an RDBMServices-configured JDBC DataSource to obtain person
attribute information. | static PersonDirInfo | getLdapPersonDirInfo() Get an exple PersonDirInfo object representing an LDAP person attribute
source which is configured directly in the PersonDirInfo (as opposed to
by reference to an LdapServices LDAP connection). | static PersonDirInfo | getLdapRefPersonDirInfo() Get an example PersonDirInfo representing using an LdapServices-configured
LDAP server to obtain person attributes. | public void | testBadXml() Test that invoking PersonDirXmlParser on a file having
nothing to do with PersonDirInfo results in empty list of PDIs. | public void | testJdbc() Test parsing a PersonDirInfo XML file that defines a JDBC
attribute source. | public void | testJdbcRef() Test parsing a PersonDirInfo that defines a JDBC source that references a
DataSource configured in RDBMServices. | public void | testLdap() | public void | testLdapRef() Test parsing a PersonDirs.xml that defines an LDAP attribute source that
references LdapServices to identify the actual LDAP server. | public void | testNullArg() Test that invoking getPersonDirInfos() on a null document
fails with an IllegalArgumentException. | public void | testSeveralSources() Test proper parsing of a file declaring several PersonDirInfo person
attribute sources. | public void | testZeroPDIs() Test that invoking PersonDirXmlParser on a file containing
zero PersonDirInfo declarations results in the empty list. |
getJdbcPersonDirInfo | static PersonDirInfo getJdbcPersonDirInfo()(Code) | | Get a PersonDirInfo representing a query against a directly-configured
JDBC attribute source.
Returns the jdbcPersonDirInfo. |
getJdbcRefPersonDirInfo | static PersonDirInfo getJdbcRefPersonDirInfo()(Code) | | Obtain an example PersonDirInfo which represents using a query against
an RDBMServices-configured JDBC DataSource to obtain person
attribute information.
Returns a suitable example PersonDirInfo. |
getLdapPersonDirInfo | static PersonDirInfo getLdapPersonDirInfo()(Code) | | Get an exple PersonDirInfo object representing an LDAP person attribute
source which is configured directly in the PersonDirInfo (as opposed to
by reference to an LdapServices LDAP connection).
Returns a suitable example PersonDirInfo |
getLdapRefPersonDirInfo | static PersonDirInfo getLdapRefPersonDirInfo()(Code) | | Get an example PersonDirInfo representing using an LdapServices-configured
LDAP server to obtain person attributes.
Returns a suitable example PersonDirInfo. |
testNullArg | public void testNullArg()(Code) | | Test that invoking getPersonDirInfos() on a null document
fails with an IllegalArgumentException.
|
|
|