|
||||||||||
| 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.directory.server.core.unit.AbstractTestCase
org.apache.directory.server.core.unit.AbstractPerformanceTest
public class AbstractPerformanceTest
A base testcase is used to create test harnesses for running performance
metrics on ApacheDS and other servers. It provides a framework for running
tests and capturing the results of individual operations against the
directory.
This test case does a few things out of the box to make life easier for those
that want to run performance tests against an LDAP server. These are listed
below:
| Field Summary |
|---|
| Fields inherited from class org.apache.directory.server.core.unit.AbstractTestCase |
|---|
configuration, doDelete, LDIF, password, sysRoot, testEntries, username |
| Constructor Summary | |
|---|---|
protected |
AbstractPerformanceTest(java.lang.Class subclass)
Initializes the statistics log PrintWriter. |
| Method Summary | |
|---|---|
protected boolean |
applyEntry(org.apache.directory.shared.ldap.ldif.Entry entry)
Only supports add operations at this point. |
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 org.apache.directory.server.core.unit.AbstractTestCase |
|---|
doDelete, getOverriddenEnvironment, overrideEnvironment, setLdifPath, setLdifPath, setLoadClass, setSysRoot, setSysRoot |
| 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, failNotEquals, failNotSame, failSame, format |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
protected AbstractPerformanceTest(java.lang.Class subclass)
throws java.io.IOException
subclass -
java.io.IOException| Method Detail |
|---|
protected void setUp()
throws java.lang.Exception
AbstractTestCase
setUp in class AbstractTestCasejava.lang.ExceptionTestCase.setUp()
protected void tearDown()
throws java.lang.Exception
AbstractTestCase
tearDown in class AbstractTestCasejava.lang.ExceptionTestCase.tearDown()
protected boolean applyEntry(org.apache.directory.shared.ldap.ldif.Entry entry)
throws java.lang.Exception
entry - the LDIF entry being applied
java.lang.Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||