|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface TestServerState
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(InheritableServerSettings 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.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. |
| Method Detail |
|---|
void create(InheritableServerSettings 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 directory
void startup()
throws java.lang.Exception
java.lang.Exception - on failures to start the core directory service
void shutdown()
throws java.lang.Exception
java.lang.Exception - on failures to stop the core directory service
void test(org.junit.runners.model.TestClass testClass,
org.junit.runners.model.Statement statement,
org.junit.runner.notification.RunNotifier notifier,
InheritableServerSettings settings)
testClass - 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
void 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 | |||||||||