public class ResetMocksTestExecutionListener extends AbstractTestExecutionListener
TestExecutionListener
to reset any mock beans that have been marked with a
MockReset
.HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
Constructor and Description |
---|
ResetMocksTestExecutionListener() |
Modifier and Type | Method and Description |
---|---|
void |
afterTestMethod(TestContext testContext) |
void |
beforeTestMethod(TestContext testContext) |
afterTestClass, beforeTestClass, getOrder, prepareTestInstance
public void beforeTestMethod(TestContext testContext) throws Exception
beforeTestMethod
in interface TestExecutionListener
beforeTestMethod
in class AbstractTestExecutionListener
Exception
public void afterTestMethod(TestContext testContext) throws Exception
afterTestMethod
in interface TestExecutionListener
afterTestMethod
in class AbstractTestExecutionListener
Exception
Copyright © 2017 Pivotal Software, Inc.. All rights reserved.