Package org.nuxeo.runtime.mockito
Class MockitoFeature
java.lang.Object
org.nuxeo.runtime.mockito.MockitoFeature
- All Implemented Interfaces:
RunnerFeature
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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 methodsprotected void
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.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, beforeSetup, configure, initialize
-
Field Details
-
provider
-
openedMocks
-
-
Constructor Details
-
MockitoFeature
public MockitoFeature()
-
-
Method Details
-
start
Description copied from interface:RunnerFeature
Features are initialized. Runner is ready to create the injector.- Specified by:
start
in interfaceRunnerFeature
-
testCreated
Description copied from interface:RunnerFeature
Notification that a test instance was created. Can be used by features to make custom injection or other preparation of the test instance.- Specified by:
testCreated
in interfaceRunnerFeature
-
afterTeardown
public void afterTeardown(FeaturesRunner runner, org.junit.runners.model.FrameworkMethod method, Object test) throws Exception Description copied from interface:RunnerFeature
After the call of the @After methods- Specified by:
afterTeardown
in interfaceRunnerFeature
- Throws:
Exception
-
afterRun
Description copied from interface:RunnerFeature
After tests were run.- Specified by:
afterRun
in interfaceRunnerFeature
- Throws:
Exception
-
stop
Description copied from interface:RunnerFeature
Before exiting the test.- Specified by:
stop
in interfaceRunnerFeature
-
cleanupThread
- Throws:
ReflectiveOperationException
-