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, testCreated
public <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
RunnerFeature
initialize
in interface RunnerFeature
initialize
in class SimpleFeature
Exception
public void start(FeaturesRunner runner) throws Exception
RunnerFeature
start
in interface RunnerFeature
start
in class SimpleFeature
Exception
public void beforeRun(FeaturesRunner runner) throws Exception
RunnerFeature
beforeRun
in interface RunnerFeature
beforeRun
in class SimpleFeature
Exception
public void stop(FeaturesRunner runner) throws Exception
RunnerFeature
stop
in interface RunnerFeature
stop
in class SimpleFeature
Exception
public void configure(FeaturesRunner runner, com.google.inject.Binder binder)
RunnerFeature
configure
in interface RunnerFeature
configure
in class SimpleFeature
public static void bindDatasource(String key, DataSource ds) throws Exception
Exception
Copyright © 2013 Nuxeo SA. All Rights Reserved.