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 handlingWithFrameworkPropertyannotations.- Since:
- 11.1
-
-
Field Summary
Fields Modifier and Type Field Description protected PropertiespreviousClassPropertiesprotected PropertiespreviousMethodProperties
-
Constructor Summary
Constructors Constructor Description WithFrameworkPropertyFeature()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterRun(FeaturesRunner runner)After tests were run.voidafterTeardown(FeaturesRunner runner, org.junit.runners.model.FrameworkMethod method, Object test)After the call of the @After methodsvoidbeforeSetup(FeaturesRunner runner, org.junit.runners.model.FrameworkMethod method, Object test)Before entering in the @Before methodsvoidinitialize(FeaturesRunner runner)Called when preparing to run the test class.protected voidputProperties(Properties previousProperties, FeaturesRunner runner, org.junit.runners.model.FrameworkMethod method)protected voidremoveProperties(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: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
-
afterRun
public void afterRun(FeaturesRunner runner) throws Exception
Description copied from interface:RunnerFeatureAfter tests were run.- Specified by:
afterRunin interfaceRunnerFeature- Throws:
Exception
-
beforeSetup
public 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 interfaceRunnerFeature
-
afterTeardown
public 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 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)
-
-