|
Nuxeo ECM Projects 5.4.3-SNAPSHOT | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
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,
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. |
void |
testCreated(Object test)
Notification that a test instance was created. |
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 RunnerFeature
Exception
public void beforeRun(FeaturesRunner runner) throws Exception
RunnerFeature
beforeRun
in interface RunnerFeature
Exception
public void start(FeaturesRunner runner) throws Exception
RunnerFeature
start
in interface RunnerFeature
Exception
public void testCreated(Object test) throws Exception
RunnerFeature
testCreated
in interface RunnerFeature
Exception
public void stop(FeaturesRunner runner) throws Exception
RunnerFeature
stop
in interface RunnerFeature
Exception
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 RunnerFeature
Exception
public void afterMethodRun(FeaturesRunner runner, org.junit.runners.model.FrameworkMethod method, Object test) throws Exception
RunnerFeature
afterMethodRun
in interface RunnerFeature
Exception
public void beforeMethodRun(FeaturesRunner runner, org.junit.runners.model.FrameworkMethod method, Object test) throws Exception
RunnerFeature
beforeMethodRun
in interface RunnerFeature
Exception
|
Nuxeo ECM Projects 5.4.3-SNAPSHOT | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |