|
||||||||||
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
org.apache.directory.server.integ.state.StartedNormalState
public class StartedNormalState
The state of a running test service which has been used for running integration tests and has been reverted to contain the same content as it did when created and started. It is not really pristine however for all practical purposes of integration testing it appears to be the same as when first started.
Field Summary |
---|
Fields inherited from class org.apache.directory.server.integ.state.AbstractState |
---|
context |
Constructor Summary | |
---|---|
StartedNormalState(TestServerContext context)
Creates a new instance of StartedNormalState. |
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 |
destroy()
Action where an attempt is made to destroy the service. |
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.internal.runners.TestClass testClass,
org.junit.internal.runners.TestMethod testMethod,
org.junit.runner.notification.RunNotifier notifier,
InheritableServerSettings settings)
Action where an attempt is made to run a test against the service. |
Methods inherited from class org.apache.directory.server.integ.state.AbstractState |
---|
create, injectLdifs |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StartedNormalState(TestServerContext context)
context
- the test's contextMethod Detail |
---|
public void destroy()
destroy
in interface TestServerState
destroy
in class AbstractState
public void cleanup() throws java.io.IOException
cleanup
in interface TestServerState
cleanup
in class AbstractState
java.io.IOException
- on errors while deleting the working directorypublic void startup() throws java.lang.Exception
startup
in interface TestServerState
startup
in class AbstractState
java.lang.Exception
- on failures to start the core directory servicepublic void shutdown() throws java.lang.Exception
shutdown
in interface TestServerState
shutdown
in class AbstractState
java.lang.Exception
- on failures to stop the core directory servicepublic void revert() throws java.lang.Exception
revert
in interface TestServerState
revert
in class AbstractState
java.lang.Exception
- on failures to revert the state of the core
directory servicepublic void test(org.junit.internal.runners.TestClass testClass, org.junit.internal.runners.TestMethod testMethod, org.junit.runner.notification.RunNotifier notifier, InheritableServerSettings settings)
test
in interface TestServerState
test
in class AbstractState
testClass
- the class whose test method is to be runtestMethod
- the test method which is to be runnotifier
- a notifier to report failures tosettings
- the inherited settings and annotations associated with
the test method
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |