Package org.nuxeo.runtime.test.runner
Class MDCFeature
- java.lang.Object
- 
- org.nuxeo.runtime.test.runner.MDCFeature
 
- 
- All Implemented Interfaces:
- RunnerFeature
 
 public class MDCFeature extends Object implements RunnerFeature 
- 
- 
Constructor SummaryConstructors Constructor Description MDCFeature()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterMethodRun(FeaturesRunner runner, org.junit.runners.model.FrameworkMethod method, Object test)After a test method was ran.voidafterRun(FeaturesRunner runner)After tests were run.voidafterTeardown(FeaturesRunner runner, org.junit.runners.model.FrameworkMethod method, Object test)After the call of the @After methodsvoidbeforeMethodRun(FeaturesRunner runner, org.junit.runners.model.FrameworkMethod method, Object test)Before a test method is invoked.voidbeforeRun(FeaturesRunner runner)Before running tests.voidbeforeSetup(FeaturesRunner runner, org.junit.runners.model.FrameworkMethod method, Object test)Before entering in the @Before methodsvoidconfigure(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.voidstart(FeaturesRunner runner)Features are initialized.voidstop(FeaturesRunner runner)Before exiting the test.voidtestCreated(Object test)Notification that a test instance was created.- 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface org.nuxeo.runtime.test.runner.RunnerFeatureafterTeardown, beforeSetup
 
- 
 
- 
- 
- 
Field Detail- 
F_TESTprotected static final String F_TEST - See Also:
- Constant Field Values
 
 - 
F_SUITEprotected static final String F_SUITE - See Also:
- Constant Field Values
 
 - 
F_STATEprotected static final String F_STATE - See Also:
- Constant Field Values
 
 
- 
 - 
Constructor Detail- 
MDCFeaturepublic MDCFeature() 
 
- 
 - 
Method Detail- 
initializepublic void initialize(FeaturesRunner runner) 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 interface- RunnerFeature
 
 - 
configurepublic void configure(FeaturesRunner runner, com.google.inject.Binder binder) 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 interface- RunnerFeature
 
 - 
beforeRunpublic void beforeRun(FeaturesRunner runner) Description copied from interface:RunnerFeatureBefore running tests. At this point Guice modules are registered and injector created.- Specified by:
- beforeRunin interface- RunnerFeature
 
 - 
afterRunpublic void afterRun(FeaturesRunner runner) Description copied from interface:RunnerFeatureAfter tests were run.- Specified by:
- afterRunin interface- RunnerFeature
 
 - 
startpublic void start(FeaturesRunner runner) Description copied from interface:RunnerFeatureFeatures are initialized. Runner is ready to create the injector.- Specified by:
- startin interface- RunnerFeature
 
 - 
testCreatedpublic void testCreated(Object test) Description copied from interface:RunnerFeatureNotification that a test instance was created. Can be used by features to make custom injection or other preparation of the test instance.- Specified by:
- testCreatedin interface- RunnerFeature
 
 - 
stoppublic void stop(FeaturesRunner runner) Description copied from interface:RunnerFeatureBefore exiting the test.- Specified by:
- stopin interface- RunnerFeature
 
 - 
beforeSetuppublic void beforeSetup(FeaturesRunner runner, org.junit.runners.model.FrameworkMethod method, Object test) Description copied from interface:RunnerFeatureBefore entering in the @Before methods- Specified by:
- beforeSetupin interface- RunnerFeature
 
 - 
afterTeardownpublic void afterTeardown(FeaturesRunner runner, org.junit.runners.model.FrameworkMethod method, Object test) Description copied from interface:RunnerFeatureAfter the call of the @After methods- Specified by:
- afterTeardownin interface- RunnerFeature
 
 - 
beforeMethodRunpublic void beforeMethodRun(FeaturesRunner runner, org.junit.runners.model.FrameworkMethod method, Object test) Description copied from interface:RunnerFeatureBefore a test method is invoked.- Specified by:
- beforeMethodRunin interface- RunnerFeature
 
 - 
afterMethodRunpublic void afterMethodRun(FeaturesRunner runner, org.junit.runners.model.FrameworkMethod method, Object test) Description copied from interface:RunnerFeatureAfter a test method was ran.- Specified by:
- afterMethodRunin interface- RunnerFeature
 
 
- 
 
-