Package org.nuxeo.runtime.mockito
Class MockitoFeature
- java.lang.Object
-
- org.nuxeo.runtime.mockito.MockitoFeature
-
- All Implemented Interfaces:
RunnerFeature
public class MockitoFeature extends Object implements RunnerFeature
-
-
Field Summary
Fields Modifier and Type Field Description protected MockProvider
provider
-
Constructor Summary
Constructors Constructor Description MockitoFeature()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
afterRun(FeaturesRunner runner)
After tests were run.protected void
cleanupThread()
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, afterTeardown, beforeMethodRun, beforeRun, beforeSetup, beforeSetup, configure, initialize
-
-
-
-
Field Detail
-
provider
protected final MockProvider provider
-
-
Method Detail
-
start
public void start(FeaturesRunner runner)
Description copied from interface:RunnerFeature
Features are initialized. Runner is ready to create the injector.- Specified by:
start
in interfaceRunnerFeature
-
testCreated
public void testCreated(Object test)
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
-
afterRun
public void afterRun(FeaturesRunner runner) throws Exception
Description copied from interface:RunnerFeature
After tests were run.- Specified by:
afterRun
in interfaceRunnerFeature
- Throws:
Exception
-
stop
public void stop(FeaturesRunner runner)
Description copied from interface:RunnerFeature
Before exiting the test.- Specified by:
stop
in interfaceRunnerFeature
-
cleanupThread
protected void cleanupThread() throws ReflectiveOperationException
- Throws:
ReflectiveOperationException
-
-