org.nuxeo.runtime.test.runner
Class RuntimeFeature
java.lang.Object
org.nuxeo.runtime.test.runner.SimpleFeature
org.nuxeo.runtime.test.runner.RuntimeFeature
- All Implemented Interfaces:
- RunnerFeature
public class RuntimeFeature
- extends SimpleFeature
- Author:
- Bogdan Stefanescu
RuntimeFeature
public RuntimeFeature()
addServiceProvider
public <T> void addServiceProvider(Class<T> clazz,
com.google.inject.Provider<T> provider)
getHarness
public RuntimeHarness getHarness()
deployments
public DeploymentSet deployments()
getDeployments
public String[] getDeployments()
getLocalDeployments
public String[] getLocalDeployments()
initialize
public void initialize(FeaturesRunner runner)
throws Exception
- Description copied from interface:
RunnerFeature
- Called when preparing to run the test class. Framework is not started at this point.
Here is time for the feature to configure the runner from annotations on the test class.
- Specified by:
initialize
in interface RunnerFeature
- Overrides:
initialize
in class SimpleFeature
- Throws:
Exception
start
public void start(FeaturesRunner runner)
throws Exception
- Description copied from interface:
RunnerFeature
- Features are initialized. Runner is ready to create the injector.
- Specified by:
start
in interface RunnerFeature
- Overrides:
start
in class SimpleFeature
- Throws:
Exception
stop
public void stop(FeaturesRunner runner)
throws Exception
- Description copied from interface:
RunnerFeature
- Before exiting the test.
- Specified by:
stop
in interface RunnerFeature
- Overrides:
stop
in class SimpleFeature
- Throws:
Exception
configure
public void configure(FeaturesRunner runner,
com.google.inject.Binder binder)
- Description copied from interface:
RunnerFeature
- Configures Guice bindings if any is required by the feature.
This is called after the framework is started and before Guice module is built.
The tests are launched after guice module is built.
- Specified by:
configure
in interface RunnerFeature
- Overrides:
configure
in class SimpleFeature
bindDatasource
public static void bindDatasource(String key,
DataSource ds)
throws Exception
- Throws:
Exception
Copyright © 2011 Nuxeo SAS. All Rights Reserved.