T - Type of the mock instance to returnpublic class MockitoFactoryBean<T>
extends org.springframework.beans.factory.config.AbstractFactoryBean<T>
| Constructor and Description |
|---|
MockitoFactoryBean(java.lang.Class<? extends T> type) |
| Modifier and Type | Method and Description |
|---|---|
protected T |
createInstance() |
protected void |
destroyInstance(T instance) |
java.lang.Class<? extends T> |
getObjectType() |
static void |
resetAllMocks()
Reset all mocks that have been created with this factory, usually called from the @Before
method in a junit test case to reset mocks before each test
|
public MockitoFactoryBean(java.lang.Class<? extends T> type)
public static void resetAllMocks()
public java.lang.Class<? extends T> getObjectType()
protected T createInstance() throws java.lang.Exception
createInstance in class org.springframework.beans.factory.config.AbstractFactoryBean<T>java.lang.ExceptionCopyright © 2018 Jasig. All Rights Reserved.