Package org.nuxeo.runtime.test.runner
Class WithFrameworkPropertyFeature
- java.lang.Object
-
- org.nuxeo.runtime.test.runner.WithFrameworkPropertyFeature
-
- All Implemented Interfaces:
RunnerFeature
public class WithFrameworkPropertyFeature extends Object implements RunnerFeature
Features handlingWithFrameworkProperty
annotations.- Since:
- 11.1
-
-
Field Summary
Fields Modifier and Type Field Description protected Properties
previousClassProperties
protected Properties
previousMethodProperties
-
Constructor Summary
Constructors Constructor Description WithFrameworkPropertyFeature()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
afterRun(FeaturesRunner runner)
After tests were run.void
afterTeardown(FeaturesRunner runner, org.junit.runners.model.FrameworkMethod method, Object test)
After the call of the @After methodsvoid
beforeSetup(FeaturesRunner runner, org.junit.runners.model.FrameworkMethod method, Object test)
Before entering in the @Before methodsvoid
initialize(FeaturesRunner runner)
Called when preparing to run the test class.protected void
putProperties(Properties previousProperties, FeaturesRunner runner, org.junit.runners.model.FrameworkMethod method)
protected void
removeProperties(Properties previousProperties, FeaturesRunner runner, org.junit.runners.model.FrameworkMethod method)
-
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, afterTeardown, beforeMethodRun, beforeRun, beforeSetup, configure, start, stop, testCreated
-
-
-
-
Field Detail
-
previousClassProperties
protected Properties previousClassProperties
-
previousMethodProperties
protected Properties previousMethodProperties
-
-
Method Detail
-
initialize
public void initialize(FeaturesRunner runner) throws Exception
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
-
afterRun
public void afterRun(FeaturesRunner runner) throws Exception
Description copied from interface:RunnerFeature
After tests were run.- Specified by:
afterRun
in interfaceRunnerFeature
- Throws:
Exception
-
beforeSetup
public void beforeSetup(FeaturesRunner runner, org.junit.runners.model.FrameworkMethod method, Object test)
Description copied from interface:RunnerFeature
Before entering in the @Before methods- Specified by:
beforeSetup
in interfaceRunnerFeature
-
afterTeardown
public void afterTeardown(FeaturesRunner runner, org.junit.runners.model.FrameworkMethod method, Object test)
Description copied from interface:RunnerFeature
After the call of the @After methods- Specified by:
afterTeardown
in interfaceRunnerFeature
-
putProperties
protected void putProperties(Properties previousProperties, FeaturesRunner runner, @Nullable org.junit.runners.model.FrameworkMethod method)
-
removeProperties
protected void removeProperties(Properties previousProperties, FeaturesRunner runner, @Nullable org.junit.runners.model.FrameworkMethod method)
-
-