public class ResetMocksTestExecutionListener extends AbstractTestExecutionListener
MockReset
でマークされたモック Bean をリセットするための TestExecutionListener
。通常、MockitoTestExecutionListener
と一緒に使用されます。MockitoTestExecutionListener
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
コンストラクターと説明 |
---|
ResetMocksTestExecutionListener() |
修飾子と型 | メソッドと説明 |
---|---|
void | afterTestMethod(TestContext testContext) |
void | beforeTestMethod(TestContext testContext) |
int | getOrder() |
afterTestClass, afterTestExecution, beforeTestClass, beforeTestExecution, prepareTestInstance
cloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSE
public int getOrder()
Ordered
の getOrder
AbstractTestExecutionListener
の getOrder
public void beforeTestMethod(TestContext testContext) throws ExceptionSE
TestExecutionListener
の beforeTestMethod
AbstractTestExecutionListener
の beforeTestMethod
ExceptionSE
public void afterTestMethod(TestContext testContext) throws ExceptionSE
TestExecutionListener
の afterTestMethod
AbstractTestExecutionListener
の afterTestMethod
ExceptionSE