Package org.nuxeo.runtime.test.runner
Class RuntimeFeature
java.lang.Object
org.nuxeo.runtime.test.runner.RuntimeFeature
- All Implemented Interfaces:
RunnerFeature
- Author:
- Bogdan Stefanescu
-
Field Summary
Modifier and TypeFieldDescriptionprotected HotDeployer
protected RuntimeDeployment
protected RuntimeHarness
protected final Map<Class<?>,
ServiceProvider<?>> Providers contributed by other features to override the default service provider used for a nuxeo service. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription<T> void
addServiceProvider
(ServiceProvider<T> provider) void
beforeRun
(FeaturesRunner runner) Before running tests.protected void
blacklistComponents
(FeaturesRunner aRunner) 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.org.junit.rules.MethodRule
registerHandler
(HotDeployer.ActionHandler handler) void
start
(FeaturesRunner runner) Features are initialized.void
stop
(FeaturesRunner runner) Before exiting the test.boolean
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.nuxeo.runtime.test.runner.RunnerFeature
afterMethodRun, afterRun, afterTeardown, afterTeardown, beforeMethodRun, beforeSetup, beforeSetup, testCreated
-
Field Details
-
harness
-
deployment
-
deployer
-
serviceProviders
Providers contributed by other features to override the default service provider used for a nuxeo service.
-
-
Constructor Details
-
RuntimeFeature
public RuntimeFeature()
-
-
Method Details
-
addServiceProvider
-
getHarness
-
initialize
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 interfaceRunnerFeature
- Throws:
Exception
-
registerHandler
-
unregisterHandler
-
configure
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 interfaceRunnerFeature
-
start
Description copied from interface:RunnerFeature
Features are initialized. Runner is ready to create the injector.- Specified by:
start
in interfaceRunnerFeature
- Throws:
Exception
-
stop
Description copied from interface:RunnerFeature
Before exiting the test.- Specified by:
stop
in interfaceRunnerFeature
- Throws:
Exception
-
onMethodDeployment
public org.junit.rules.MethodRule onMethodDeployment() -
blacklistComponents
-
beforeRun
Description copied from interface:RunnerFeature
Before running tests. At this point Guice modules are registered and injector created.- Specified by:
beforeRun
in interfaceRunnerFeature
- Throws:
Exception
-