public class RuntimeFeature extends SimpleFeature
| Constructor and Description |
|---|
RuntimeFeature() |
| Modifier and Type | Method and Description |
|---|---|
<T> void |
addServiceProvider(ServiceProvider<T> provider) |
void |
beforeRun(FeaturesRunner runner)
Before running tests.
|
static void |
bindDatasource(String key,
DataSource ds) |
void |
configure(FeaturesRunner runner,
com.google.inject.Binder binder)
Configures Guice bindings if any is required by the feature.
|
DeploymentSet |
deployments() |
String[] |
getDeployments() |
RuntimeHarness |
getHarness() |
String[] |
getLocalDeployments() |
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.
|
afterMethodRun, afterRun, afterTeardown, beforeMethodRun, beforeSetup, testCreatedpublic <T> void addServiceProvider(ServiceProvider<T> provider)
public RuntimeHarness getHarness()
public DeploymentSet deployments()
public String[] getDeployments()
public String[] getLocalDeployments()
public void initialize(FeaturesRunner runner) throws Exception
RunnerFeatureinitialize in interface RunnerFeatureinitialize in class SimpleFeatureExceptionpublic void start(FeaturesRunner runner) throws Exception
RunnerFeaturestart in interface RunnerFeaturestart in class SimpleFeatureExceptionpublic void beforeRun(FeaturesRunner runner) throws Exception
RunnerFeaturebeforeRun in interface RunnerFeaturebeforeRun in class SimpleFeatureExceptionpublic void stop(FeaturesRunner runner) throws Exception
RunnerFeaturestop in interface RunnerFeaturestop in class SimpleFeatureExceptionpublic void configure(FeaturesRunner runner, com.google.inject.Binder binder)
RunnerFeatureconfigure in interface RunnerFeatureconfigure in class SimpleFeaturepublic static void bindDatasource(String key, DataSource ds) throws Exception
ExceptionCopyright © 2013 Nuxeo SA. All Rights Reserved.