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
FieldsModifier and TypeFieldDescriptionprotected HotDeployerprotected RuntimeDeploymentprotected RuntimeHarnessprotected final Map<Class<?>,ServiceProvider<?>> Providers contributed by other features to override the default service provider used for a nuxeo service. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> voidaddServiceProvider(ServiceProvider<T> provider) voidbeforeRun(FeaturesRunner runner) Before running tests.protected voidblacklistComponents(FeaturesRunner aRunner) voidconfigure(FeaturesRunner runner, com.google.inject.Binder binder) Configures Guice bindings if any is required by the feature.voidinitialize(FeaturesRunner runner) Called when preparing to run the test class.org.junit.rules.MethodRuleregisterHandler(HotDeployer.ActionHandler handler) voidstart(FeaturesRunner runner) Features are initialized.voidstop(FeaturesRunner runner) Before exiting the test.booleanMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:RunnerFeatureCalled 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:
initializein interfaceRunnerFeature- Throws:
Exception
-
registerHandler
-
unregisterHandler
-
configure
Description copied from interface:RunnerFeatureConfigures 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:
configurein interfaceRunnerFeature
-
start
Description copied from interface:RunnerFeatureFeatures are initialized. Runner is ready to create the injector.- Specified by:
startin interfaceRunnerFeature- Throws:
Exception
-
stop
Description copied from interface:RunnerFeatureBefore exiting the test.- Specified by:
stopin interfaceRunnerFeature- Throws:
Exception
-
onMethodDeployment
public org.junit.rules.MethodRule onMethodDeployment() -
blacklistComponents
-
beforeRun
Description copied from interface:RunnerFeatureBefore running tests. At this point Guice modules are registered and injector created.- Specified by:
beforeRunin interfaceRunnerFeature- Throws:
Exception
-