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
prepareTestInstance in interface org.springframework.test.context.TestExecutionListenerprepareTestInstance in class org.springframework.test.context.support.AbstractTestExecutionListenerExceptionpublic void beforeTestMethod(org.springframework.test.context.TestContext testContext)
throws Exception
beforeTestMethod in interface org.springframework.test.context.TestExecutionListenerbeforeTestMethod in class org.springframework.test.context.support.AbstractTestExecutionListenerExceptionCopyright © 2019 Pivotal Software, Inc.. All rights reserved.