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 MockProviderprovider
-
Constructor Summary
Constructors Constructor Description MockitoFeature()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterRun(FeaturesRunner runner)After tests were run.protected voidcleanupThread()voidstart(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, 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:RunnerFeatureFeatures are initialized. Runner is ready to create the injector.- Specified by:
startin interfaceRunnerFeature
-
testCreated
public void testCreated(Object test)
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
-
afterRun
public void afterRun(FeaturesRunner runner) throws Exception
Description copied from interface:RunnerFeatureAfter tests were run.- Specified by:
afterRunin interfaceRunnerFeature- Throws:
Exception
-
stop
public void stop(FeaturesRunner runner)
Description copied from interface:RunnerFeatureBefore exiting the test.- Specified by:
stopin interfaceRunnerFeature
-
cleanupThread
protected void cleanupThread() throws ReflectiveOperationException- Throws:
ReflectiveOperationException
-
-