|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.directory.server.core.integ.state.AbstractState
org.apache.directory.server.core.integ.state.StartedPristineState
public class StartedPristineState
A test service state where the server is running and has not been used for any integration test since it was created.
Field Summary |
---|
Fields inherited from class org.apache.directory.server.core.integ.state.AbstractState |
---|
context |
Constructor Summary | |
---|---|
StartedPristineState(TestServiceContext context)
Creates a new instance of StartedPristineState. |
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 |
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,
InheritableSettings settings)
Action where an attempt is made to run a test against the service. |
Methods inherited from class org.apache.directory.server.core.integ.state.AbstractState |
---|
create, injectLdifs, revert |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StartedPristineState(TestServiceContext context)
context
- the test's contextMethod Detail |
---|
public void cleanup() throws java.io.IOException
cleanup
in interface TestServiceState
cleanup
in class AbstractState
java.io.IOException
- on errors while deleting the working directorypublic void startup() throws java.lang.Exception
startup
in interface TestServiceState
startup
in class AbstractState
java.lang.Exception
- on failures to start the core directory servicepublic void shutdown() throws java.lang.Exception
shutdown
in interface TestServiceState
shutdown
in class AbstractState
java.lang.Exception
- on failures to stop the core directory servicepublic void destroy()
destroy
in interface TestServiceState
destroy
in class AbstractState
public void test(org.junit.internal.runners.TestClass testClass, org.junit.internal.runners.TestMethod testMethod, org.junit.runner.notification.RunNotifier notifier, InheritableSettings settings)
test
in interface TestServiceState
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 |