Package org.nuxeo.runtime.test.runner
Class SimpleFeature
- java.lang.Object
- 
- org.nuxeo.runtime.test.runner.SimpleFeature
 
- 
- All Implemented Interfaces:
- RunnerFeature
 
 @Deprecated public class SimpleFeature extends Object implements RunnerFeature Deprecated.since 10.3, implements directlyRunnerFeatureThese are the states the runner goes through when using runtime feature:CREATE FRAMEWORK new feature() --> constructor COLLECT DEFINED DEPLOYMENTS feature.initialize() --> can be used to configure nuxeo home or register JNDI objects START FRAMEWORK feature.start() feature.beforeRun() feature.configure() --> can be used to add guice bindings and to dynamically deploy components using the harness for each test method: feature.testCreated() feature.beforeSetup feature.beforeMethodRun() --> test method interceptor testMethod() feature.afterMethodRun() --> test method interceptor feature.afterTeardown() feature.afterRun() --> cleanup that require framework to be started STOP FRAMEWORK feature.stop() --> destructor - Author:
- Bogdan Stefanescu
 
- 
- 
Constructor SummaryConstructors Constructor Description SimpleFeature()Deprecated.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidafterMethodRun(FeaturesRunner runner, org.junit.runners.model.FrameworkMethod method, Object test)Deprecated.After a test method was ran.voidafterRun(FeaturesRunner runner)Deprecated.After tests were run.voidafterTeardown(FeaturesRunner runner, org.junit.runners.model.FrameworkMethod method, Object test)Deprecated.After the call of the @After methodsvoidbeforeMethodRun(FeaturesRunner runner, org.junit.runners.model.FrameworkMethod method, Object test)Deprecated.Before a test method is invoked.voidbeforeRun(FeaturesRunner runner)Deprecated.Before running tests.voidbeforeSetup(FeaturesRunner runner, org.junit.runners.model.FrameworkMethod method, Object test)Deprecated.Before entering in the @Before methodsvoidconfigure(FeaturesRunner runner, com.google.inject.Binder binder)Deprecated.Configures Guice bindings if any is required by the feature.voidinitialize(FeaturesRunner runner)Deprecated.Called when preparing to run the test class.voidstart(FeaturesRunner runner)Deprecated.Features are initialized.voidstop(FeaturesRunner runner)Deprecated.Before exiting the test.voidtestCreated(Object test)Deprecated.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
 
- 
 
- 
- 
- 
Constructor Detail- 
SimpleFeaturepublic SimpleFeature() Deprecated.
 
- 
 - 
Method Detail- 
afterRunpublic void afterRun(FeaturesRunner runner) throws Exception Deprecated.Description copied from interface:RunnerFeatureAfter tests were run.- Specified by:
- afterRunin interface- RunnerFeature
- Throws:
- Exception
 
 - 
beforeRunpublic void beforeRun(FeaturesRunner runner) throws Exception Deprecated.Description copied from interface:RunnerFeatureBefore running tests. At this point Guice modules are registered and injector created.- Specified by:
- beforeRunin interface- RunnerFeature
- Throws:
- Exception
 
 - 
startpublic void start(FeaturesRunner runner) throws Exception Deprecated.Description copied from interface:RunnerFeatureFeatures are initialized. Runner is ready to create the injector.- Specified by:
- startin interface- RunnerFeature
- Throws:
- Exception
 
 - 
testCreatedpublic void testCreated(Object test) throws Exception Deprecated.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
- Throws:
- Exception
 
 - 
stoppublic void stop(FeaturesRunner runner) throws Exception Deprecated.Description copied from interface:RunnerFeatureBefore exiting the test.- Specified by:
- stopin interface- RunnerFeature
- Throws:
- Exception
 
 - 
configurepublic void configure(FeaturesRunner runner, com.google.inject.Binder binder) Deprecated.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
 
 - 
initializepublic void initialize(FeaturesRunner runner) throws Exception Deprecated.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
- Throws:
- Exception
 
 - 
afterMethodRunpublic void afterMethodRun(FeaturesRunner runner, org.junit.runners.model.FrameworkMethod method, Object test) throws Exception Deprecated.Description copied from interface:RunnerFeatureAfter a test method was ran.- Specified by:
- afterMethodRunin interface- RunnerFeature
- Throws:
- Exception
 
 - 
beforeMethodRunpublic void beforeMethodRun(FeaturesRunner runner, org.junit.runners.model.FrameworkMethod method, Object test) throws Exception Deprecated.Description copied from interface:RunnerFeatureBefore a test method is invoked.- Specified by:
- beforeMethodRunin interface- RunnerFeature
- Throws:
- Exception
 
 - 
beforeSetuppublic void beforeSetup(FeaturesRunner runner, org.junit.runners.model.FrameworkMethod method, Object test) throws Exception Deprecated.Description copied from interface:RunnerFeatureBefore entering in the @Before methods- Specified by:
- beforeSetupin interface- RunnerFeature
- Throws:
- Exception
 
 - 
afterTeardownpublic void afterTeardown(FeaturesRunner runner, org.junit.runners.model.FrameworkMethod method, Object test) throws Exception Deprecated.Description copied from interface:RunnerFeatureAfter the call of the @After methods- Specified by:
- afterTeardownin interface- RunnerFeature
- Throws:
- Exception
 
 
- 
 
-