public class MockitoTestExecutionListener
extends org.springframework.test.context.support.AbstractTestExecutionListener
TestExecutionListener to trigger MockitoAnnotations.initMocks(Object)
when @MockBean annotations are used. Primarily to allow Captor
annotations.| Constructor and Description |
|---|
MockitoTestExecutionListener() |
| Modifier and Type | Method and Description |
|---|---|
void |
prepareTestInstance(org.springframework.test.context.TestContext testContext) |
public void prepareTestInstance(org.springframework.test.context.TestContext testContext)
throws Exception
prepareTestInstance in interface org.springframework.test.context.TestExecutionListenerprepareTestInstance in class org.springframework.test.context.support.AbstractTestExecutionListenerExceptionCopyright © 2017 Pivotal Software, Inc.. All rights reserved.