public class SimpleFeature extends Object implements RunnerFeature
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
Constructor and Description |
---|
SimpleFeature() |
Modifier and Type | Method and Description |
---|---|
void |
afterMethodRun(FeaturesRunner runner,
org.junit.runners.model.FrameworkMethod method,
Object test)
After a test method was ran.
|
void |
afterRun(FeaturesRunner runner)
After tests were run.
|
void |
afterTeardown(FeaturesRunner runner)
After the call of the @After methods
|
void |
beforeMethodRun(FeaturesRunner runner,
org.junit.runners.model.FrameworkMethod method,
Object test)
Before a test method is invoked.
|
void |
beforeRun(FeaturesRunner runner)
Before running tests.
|
void |
beforeSetup(FeaturesRunner runner)
Before entering in the @Before methods
|
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.
|
void |
start(FeaturesRunner runner)
Features are initialized.
|
void |
stop(FeaturesRunner runner)
Before exiting the test.
|
void |
testCreated(Object test)
Notification that a test instance was created.
|
public SimpleFeature()
public void afterRun(FeaturesRunner runner) throws Exception
RunnerFeature
afterRun
in interface RunnerFeature
Exception
public void beforeRun(FeaturesRunner runner) throws Exception
RunnerFeature
beforeRun
in interface RunnerFeature
Exception
public void start(FeaturesRunner runner) throws Exception
RunnerFeature
start
in interface RunnerFeature
Exception
public void testCreated(Object test) throws Exception
RunnerFeature
testCreated
in interface RunnerFeature
Exception
public void stop(FeaturesRunner runner) throws Exception
RunnerFeature
stop
in interface RunnerFeature
Exception
public void configure(FeaturesRunner runner, com.google.inject.Binder binder)
RunnerFeature
configure
in interface RunnerFeature
public void initialize(FeaturesRunner runner) throws Exception
RunnerFeature
initialize
in interface RunnerFeature
Exception
public void afterMethodRun(FeaturesRunner runner, org.junit.runners.model.FrameworkMethod method, Object test) throws Exception
RunnerFeature
afterMethodRun
in interface RunnerFeature
Exception
public void beforeMethodRun(FeaturesRunner runner, org.junit.runners.model.FrameworkMethod method, Object test) throws Exception
RunnerFeature
beforeMethodRun
in interface RunnerFeature
Exception
public void beforeSetup(FeaturesRunner runner) throws Exception
RunnerFeature
beforeSetup
in interface RunnerFeature
Exception
public void afterTeardown(FeaturesRunner runner) throws Exception
RunnerFeature
afterTeardown
in interface RunnerFeature
Exception
Copyright © 2018 Nuxeo. All rights reserved.