|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
org.apache.ldap.server.AbstractCoreTest
A simple testcase for testing JNDI provider functionality.
Field Summary | |
protected boolean |
doDelete
flag whether to delete database files for each test or not |
protected java.util.Hashtable |
extras
extra environment parameters that can be added before setUp |
static java.lang.String |
LDIF
|
protected java.util.Hashtable |
overrides
extra environment parameters that can be added before setUp to override values |
protected javax.naming.ldap.LdapContext |
sysRoot
the context root for the system partition |
Constructor Summary | |
AbstractCoreTest()
|
Method Summary | |
protected void |
doDelete(java.io.File wkdir)
Deletes the Eve working directory. |
protected void |
importLdif(java.io.InputStream in)
Imports the LDIF entries packaged with the Eve JNDI provider jar into the newly created system partition to prime it up for operation. |
protected javax.naming.ldap.LdapContext |
setSysRoot(java.util.Hashtable env)
Sets the system root taking into account the extras and overrides properties. |
protected javax.naming.ldap.LdapContext |
setSysRoot(java.lang.String user,
java.lang.String passwd)
Sets and returns the system root. |
protected void |
setUp()
Get's the initial context factory for the provider's ou=system context root. |
protected void |
tearDown()
Sets the system context root to null. |
Methods inherited from class junit.framework.TestCase |
countTestCases, createResult, getName, run, run, runBare, runTest, setName, toString |
Methods inherited from class junit.framework.Assert |
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final java.lang.String LDIF
protected javax.naming.ldap.LdapContext sysRoot
protected boolean doDelete
protected java.util.Hashtable extras
protected java.util.Hashtable overrides
Constructor Detail |
public AbstractCoreTest()
Method Detail |
protected void setUp() throws java.lang.Exception
java.lang.Exception
TestCase.setUp()
protected void doDelete(java.io.File wkdir) throws java.io.IOException
java.io.IOException
protected javax.naming.ldap.LdapContext setSysRoot(java.lang.String user, java.lang.String passwd) throws javax.naming.NamingException
user
- the username for authenticating as this userpasswd
- the password of the user
javax.naming.NamingException
- if there is a failure of any kindprotected javax.naming.ldap.LdapContext setSysRoot(java.util.Hashtable env) throws javax.naming.NamingException
env
- an environment to use while setting up the system root.
javax.naming.NamingException
- if there is a failure of any kindprotected void tearDown() throws java.lang.Exception
java.lang.Exception
TestCase.tearDown()
protected void importLdif(java.io.InputStream in) throws javax.naming.NamingException
javax.naming.NamingException
- if there are problems reading the ldif file and
adding those entries to the system partition
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |