Package org.nuxeo.runtime.mockito
Class MockitoFeature
java.lang.Object
org.nuxeo.runtime.mockito.MockitoFeature
- All Implemented Interfaces:
RunnerFeature
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidafterRun(FeaturesRunner runner) After tests were run.voidafterTeardown(FeaturesRunner runner, org.junit.runners.model.FrameworkMethod method, Object test) After the call of the @After methodsprotected voidvoidstart(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.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.nuxeo.runtime.test.runner.RunnerFeature
afterMethodRun, afterTeardown, beforeMethodRun, beforeRun, beforeSetup, beforeSetup, configure, initialize
-
Field Details
-
provider
-
openedMocks
-
-
Constructor Details
-
MockitoFeature
public MockitoFeature()
-
-
Method Details
-
start
Description copied from interface:RunnerFeatureFeatures are initialized. Runner is ready to create the injector.- Specified by:
startin interfaceRunnerFeature
-
testCreated
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 interfaceRunnerFeature
-
afterTeardown
public void afterTeardown(FeaturesRunner runner, org.junit.runners.model.FrameworkMethod method, Object test) throws Exception Description copied from interface:RunnerFeatureAfter the call of the @After methods- Specified by:
afterTeardownin interfaceRunnerFeature- Throws:
Exception
-
afterRun
Description copied from interface:RunnerFeatureAfter tests were run.- Specified by:
afterRunin interfaceRunnerFeature- Throws:
Exception
-
stop
Description copied from interface:RunnerFeatureBefore exiting the test.- Specified by:
stopin interfaceRunnerFeature
-
cleanupThread
- Throws:
ReflectiveOperationException
-