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 |
prepareTestInstance(TestContext testContext) |
getOrder
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
afterTestClass, afterTestExecution, afterTestMethod, beforeTestClass, beforeTestExecution, beforeTestMethod
public void prepareTestInstance(TestContext testContext) throws Exception
Exception
Copyright © 2017 Pivotal Software, Inc.. All rights reserved.