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 |
beforeTestMethod(org.springframework.test.context.TestContext testContext) |
int |
getOrder() |
void |
prepareTestInstance(org.springframework.test.context.TestContext testContext) |
public final int getOrder()
getOrder in interface org.springframework.core.OrderedgetOrder in class org.springframework.test.context.support.AbstractTestExecutionListenerpublic void prepareTestInstance(org.springframework.test.context.TestContext testContext)
throws Exception
ExceptionCopyright © 2018 Pivotal Software, Inc.. All rights reserved.