|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectTestCase
org.apache.directory.server.protocol.shared.AbstractBackingStoreTest
Base class for testing protocol providers against the JNDI provider.
Field Summary | |
protected MutableStartupConfiguration |
config
the backing store configuration |
protected boolean |
doDelete
a flag stating whether to delete the backing store for each test or not |
protected java.util.Hashtable |
env
|
protected CoreContextFactory |
factory
|
Constructor Summary | |
AbstractBackingStoreTest()
|
Method Summary | |
protected void |
doDelete(java.io.File wkdir)
Deletes the working directory. |
protected void |
doTestApacheZone()
|
protected void |
doTestExampleZone()
|
protected void |
doTestSystemPartition()
Test that the system partition was set up properly. |
protected java.lang.String |
escapedValue(java.lang.String value)
|
protected javax.naming.Name |
getRelativeName(java.lang.String nameInNamespace,
java.lang.String baseDn)
|
protected void |
load(javax.naming.directory.DirContext ctx,
java.lang.String ldifPath)
Opens the LDIF file and loads the entries into the context. |
protected void |
loadPartition(java.lang.String partition,
java.lang.String ldifFile)
|
protected void |
printAttr(javax.naming.directory.Attributes attrs,
java.lang.String id)
|
protected void |
printAttrs(javax.naming.directory.Attributes attrs)
|
protected void |
setUp()
|
protected java.util.Hashtable |
setUpPartition()
|
protected void |
tearDown()
Shuts down the backing store, optionally deleting the database directory. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected boolean doDelete
protected MutableStartupConfiguration config
protected CoreContextFactory factory
protected java.util.Hashtable env
Constructor Detail |
public AbstractBackingStoreTest()
Method Detail |
protected void setUp() throws java.lang.Exception
java.lang.Exception
protected void loadPartition(java.lang.String partition, java.lang.String ldifFile) throws javax.naming.NamingException
javax.naming.NamingException
protected void doTestSystemPartition() throws java.lang.Exception
javax.naming.NamingException
- if there are problems
java.lang.Exception
protected void doTestApacheZone() throws java.lang.Exception
java.lang.Exception
protected void doTestExampleZone() throws java.lang.Exception
java.lang.Exception
protected java.util.Hashtable setUpPartition() throws javax.naming.NamingException
javax.naming.NamingException
protected void tearDown() throws java.lang.Exception
java.lang.Exception
junit.framework.TestCase#tearDown()
protected void doDelete(java.io.File wkdir) throws java.io.IOException
java.io.IOException
protected void load(javax.naming.directory.DirContext ctx, java.lang.String ldifPath)
protected javax.naming.Name getRelativeName(java.lang.String nameInNamespace, java.lang.String baseDn) throws javax.naming.NamingException
javax.naming.NamingException
protected java.lang.String escapedValue(java.lang.String value)
protected void printAttr(javax.naming.directory.Attributes attrs, java.lang.String id)
protected void printAttrs(javax.naming.directory.Attributes attrs)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |