public class MockitoTestExecutionListener extends AbstractTestExecutionListener
TestExecutionListener to trigger MockitoAnnotations.initMocks(Object)
when @MockBean annotations are used. Primarily to allow Captor
annotations.HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE| Constructor and Description |
|---|
MockitoTestExecutionListener() |
| Modifier and Type | Method and Description |
|---|---|
void |
beforeTestMethod(TestContext testContext) |
int |
getOrder() |
void |
prepareTestInstance(TestContext testContext) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitafterTestClass, afterTestExecution, afterTestMethod, beforeTestClass, beforeTestExecutionpublic final int getOrder()
getOrder in interface OrderedgetOrder in class AbstractTestExecutionListenerpublic void prepareTestInstance(TestContext testContext) throws Exception
Exceptionpublic void beforeTestMethod(TestContext testContext) throws Exception
ExceptionCopyright © 2018 Pivotal Software, Inc.. All rights reserved.