|
Nuxeo Enterprise Platform 5.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.nuxeo.runtime.test.runner.SimpleFeature
public class SimpleFeature
These are the states the runner goes through when using runtime feature:
CREATE FRAMEWORK new feature() --> constructor COLLECT DEFINED DEPLOYMENTS feature.initialize() --> can be used to configure nuxeo home or register JNDI objects START FRAMEWORK feature.start() CREATE INJECTOR => feature.configure() --> can be used to add guice bindings and to dynamically deploy components using the harness feature.beforeRun() feature.beforeMethodRun() --> test method interceptor feature.afterMethodRun() --> test method interceptor feature.afterRun() --> cleanup that require framework to be started STOP FRAMEWORK feature.stop() --> destructor
Constructor Summary | |
---|---|
SimpleFeature()
|
Method Summary | |
---|---|
void |
afterMethodRun(FeaturesRunner runner,
org.junit.runners.model.FrameworkMethod method,
java.lang.Object test)
After a test method was ran. |
void |
afterRun(FeaturesRunner runner)
After tests were run. |
void |
beforeMethodRun(FeaturesRunner runner,
org.junit.runners.model.FrameworkMethod method,
java.lang.Object test)
Before a test method is invoked. |
void |
beforeRun(FeaturesRunner runner)
Before running tests. |
void |
configure(FeaturesRunner runner,
com.google.inject.Binder binder)
Configures Guice bindings if any is required by the feature. |
void |
initialize(FeaturesRunner runner)
Called when preparing to run the test class. |
void |
start(FeaturesRunner runner)
Features are initialized. |
void |
stop(FeaturesRunner runner)
Before exiting the test. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SimpleFeature()
Method Detail |
---|
public void afterRun(FeaturesRunner runner) throws java.lang.Exception
RunnerFeature
afterRun
in interface RunnerFeature
java.lang.Exception
public void beforeRun(FeaturesRunner runner) throws java.lang.Exception
RunnerFeature
beforeRun
in interface RunnerFeature
java.lang.Exception
public void start(FeaturesRunner runner) throws java.lang.Exception
RunnerFeature
start
in interface RunnerFeature
java.lang.Exception
public void stop(FeaturesRunner runner) throws java.lang.Exception
RunnerFeature
stop
in interface RunnerFeature
java.lang.Exception
public void configure(FeaturesRunner runner, com.google.inject.Binder binder)
RunnerFeature
configure
in interface RunnerFeature
public void initialize(FeaturesRunner runner) throws java.lang.Exception
RunnerFeature
initialize
in interface RunnerFeature
java.lang.Exception
public void afterMethodRun(FeaturesRunner runner, org.junit.runners.model.FrameworkMethod method, java.lang.Object test) throws java.lang.Exception
RunnerFeature
afterMethodRun
in interface RunnerFeature
java.lang.Exception
public void beforeMethodRun(FeaturesRunner runner, org.junit.runners.model.FrameworkMethod method, java.lang.Object test) throws java.lang.Exception
RunnerFeature
beforeMethodRun
in interface RunnerFeature
java.lang.Exception
|
Nuxeo Enterprise Platform 5.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |