|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TestServiceState
The interface representing a state in the lifecycle of a service during integration testing.
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(InheritableSettings settings)
Action where an attempt is made to create the service. |
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,
InheritableSettings settings)
Action where an attempt is made to run a test against the service. |
Method Detail |
---|
void create(InheritableSettings settings) throws javax.naming.NamingException
settings
- The inherited settings
javax.naming.NamingException
- if we can't create the servicevoid destroy()
void cleanup() throws java.io.IOException
java.io.IOException
- on errors while deleting the working directoryvoid startup() throws java.lang.Exception
java.lang.Exception
- on failures to start the core directory servicevoid shutdown() throws java.lang.Exception
java.lang.Exception
- on failures to stop the core directory servicevoid test(org.junit.internal.runners.TestClass testClass, org.junit.internal.runners.TestMethod testMethod, org.junit.runner.notification.RunNotifier notifier, InheritableSettings settings)
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 methodvoid revert() throws java.lang.Exception
java.lang.Exception
- on failures to revert the state of the core
directory service
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |