|
Nuxeo Enterprise Platform 5.4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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,
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,
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 Exception
RunnerFeature
afterRun in interface RunnerFeatureException
public void beforeRun(FeaturesRunner runner)
throws Exception
RunnerFeature
beforeRun in interface RunnerFeatureException
public void start(FeaturesRunner runner)
throws Exception
RunnerFeature
start in interface RunnerFeatureException
public void stop(FeaturesRunner runner)
throws Exception
RunnerFeature
stop in interface RunnerFeatureException
public void configure(FeaturesRunner runner,
com.google.inject.Binder binder)
RunnerFeature
configure in interface RunnerFeature
public void initialize(FeaturesRunner runner)
throws Exception
RunnerFeature
initialize in interface RunnerFeatureException
public void afterMethodRun(FeaturesRunner runner,
org.junit.runners.model.FrameworkMethod method,
Object test)
throws Exception
RunnerFeature
afterMethodRun in interface RunnerFeatureException
public void beforeMethodRun(FeaturesRunner runner,
org.junit.runners.model.FrameworkMethod method,
Object test)
throws Exception
RunnerFeature
beforeMethodRun in interface RunnerFeatureException
|
Nuxeo Enterprise Platform 5.4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||