|
||||||||||
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.NonExistentState
public class NonExistentState
The state of a test service when it has not yet been created.
Field Summary |
---|
Fields inherited from class org.apache.directory.server.integ.state.AbstractState |
---|
context |
Constructor Summary | |
---|---|
NonExistentState(TestServerContext context)
Creates a new instance of NonExistentState. |
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 |
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)
This method is a bit different. |
Methods inherited from class org.apache.directory.server.integ.state.AbstractState |
---|
destroy, injectLdifs, revert, shutdown |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NonExistentState(TestServerContext context)
context
- the test contextMethod Detail |
---|
public void create(InheritableServerSettings settings) throws javax.naming.NamingException
create
in interface TestServerState
create
in class AbstractState
settings
- The inherited settings
javax.naming.NamingException
- if we can't create the servicepublic 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 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 methodTestServerState.test(TestClass, TestMethod, RunNotifier, InheritableServerSettings)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |