|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.directory.server.integ.state.AbstractState
public abstract class AbstractState
The abstract state of a test service, containing the default state transitions
| Field Summary | |
|---|---|
protected TestServerContext |
context
The context for this test |
| Constructor Summary | |
|---|---|
protected |
AbstractState(TestServerContext context)
Creates a new instance of AbstractState. |
| Method Summary | |
|---|---|
void |
cleanup()
Action where an attempt is made to erase the contents of the working directory used by the service for various files including partition database files. |
void |
create(InheritableServerSettings settings)
Action where an attempt is made to create the service. |
void |
destroy()
Action where an attempt is made to destroy the service. |
protected void |
injectLdifs(DirectoryService service,
InheritableServerSettings settings)
Inject the Ldifs if any |
void |
revert()
Action where an attempt is made to revert the service to it's initial start up state by using a previous snapshot. |
void |
shutdown()
Action where an attempt is made to shutdown the service. |
void |
startup()
Action where an attempt is made to start up the service. |
void |
test(org.junit.runners.model.TestClass testClass,
org.junit.runners.model.Statement statement,
org.junit.runner.notification.RunNotifier notifier,
InheritableServerSettings settings)
Action where an attempt is made to run a test against the service. |
protected void |
testAborted(org.junit.runner.notification.RunNotifier notifier,
org.junit.runner.Description description,
java.lang.Throwable cause)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final TestServerContext context
| Constructor Detail |
|---|
protected AbstractState(TestServerContext context)
context - The associated context| Method Detail |
|---|
public void create(InheritableServerSettings settings)
throws javax.naming.NamingException
create in interface TestServerStatesettings - The inherited settings
javax.naming.NamingException - if we can't create the servicepublic void destroy()
destroy in interface TestServerState
public void cleanup()
throws java.io.IOException
cleanup in interface TestServerStatejava.io.IOException - on errors while deleting the working directory
public void startup()
throws java.lang.Exception
startup in interface TestServerStatejava.lang.Exception - on failures to start the core directory service
public void shutdown()
throws java.lang.Exception
shutdown in interface TestServerStatejava.lang.Exception - on failures to stop the core directory service
public void test(org.junit.runners.model.TestClass testClass,
org.junit.runners.model.Statement statement,
org.junit.runner.notification.RunNotifier notifier,
InheritableServerSettings settings)
test in interface TestServerStatetestClass - the class whose test method is to be runstatement - the test method which is to be runnotifier - a notifier to report failures tosettings - the inherited settings and annotations associated with
the test method
public void revert()
throws java.lang.Exception
revert in interface TestServerStatejava.lang.Exception - on failures to revert the state of the core
directory service
protected void injectLdifs(DirectoryService service,
InheritableServerSettings settings)
throws java.lang.Exception
service - the instantiated directory servicesettings - the settings containing the ldif
java.lang.Exception
protected void testAborted(org.junit.runner.notification.RunNotifier notifier,
org.junit.runner.Description description,
java.lang.Throwable cause)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||