Package org.mockito.internal.runners
Class RunnerFactory
java.lang.Object
org.mockito.internal.runners.RunnerFactory
Creates instances of Mockito JUnit Runner in a safe way, e.g. detecting inadequate version of JUnit, etc.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreates silent runner implementationcreate
(Class<?> klass, Supplier<MockitoTestListener> listenerSupplier) Creates runner implementation with provided listener suppliercreateStrict
(Class<?> klass) Creates strict runner implementationcreateStrictStubs
(Class<?> klass) Creates strict stubs runner implementation TODO, let's try to apply Brice suggestion and use switch + Strictness
-
Constructor Details
-
RunnerFactory
public RunnerFactory()
-
-
Method Details
-
create
Creates silent runner implementation- Throws:
InvocationTargetException
-
createStrict
Creates strict runner implementation- Throws:
InvocationTargetException
-
createStrictStubs
Creates strict stubs runner implementation TODO, let's try to apply Brice suggestion and use switch + Strictness- Throws:
InvocationTargetException
-
create
public InternalRunner create(Class<?> klass, Supplier<MockitoTestListener> listenerSupplier) throws InvocationTargetException Creates runner implementation with provided listener supplier- Throws:
InvocationTargetException
-