Class ResetMocksTestExecutionListener
java.lang.Object
org.springframework.test.context.support.AbstractTestExecutionListener
org.springframework.boot.test.mock.mockito.ResetMocksTestExecutionListener
- All Implemented Interfaces:
org.springframework.core.Ordered,org.springframework.test.context.TestExecutionListener
@Deprecated(since="3.4.0",
forRemoval=true)
public class ResetMocksTestExecutionListener
extends org.springframework.test.context.support.AbstractTestExecutionListener
Deprecated, for removal: This API element is subject to removal in a future version.
TestExecutionListener to reset any mock beans that have been marked with a
MockReset. Typically used alongside MockitoTestExecutionListener.- Since:
- 1.4.0
- See Also:
-
Field Summary
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionvoidafterTestMethod(org.springframework.test.context.TestContext testContext) Deprecated, for removal: This API element is subject to removal in a future version.voidbeforeTestMethod(org.springframework.test.context.TestContext testContext) Deprecated, for removal: This API element is subject to removal in a future version.intgetOrder()Deprecated, for removal: This API element is subject to removal in a future version.Methods inherited from class org.springframework.test.context.support.AbstractTestExecutionListener
afterTestClass, afterTestExecution, beforeTestClass, beforeTestExecution, prepareTestInstance
-
Constructor Details
-
ResetMocksTestExecutionListener
public ResetMocksTestExecutionListener()Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
getOrder
public int getOrder()Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getOrderin interfaceorg.springframework.core.Ordered- Overrides:
getOrderin classorg.springframework.test.context.support.AbstractTestExecutionListener
-
beforeTestMethod
public void beforeTestMethod(org.springframework.test.context.TestContext testContext) throws Exception Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
beforeTestMethodin interfaceorg.springframework.test.context.TestExecutionListener- Overrides:
beforeTestMethodin classorg.springframework.test.context.support.AbstractTestExecutionListener- Throws:
Exception
-
afterTestMethod
public void afterTestMethod(org.springframework.test.context.TestContext testContext) throws Exception Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
afterTestMethodin interfaceorg.springframework.test.context.TestExecutionListener- Overrides:
afterTestMethodin classorg.springframework.test.context.support.AbstractTestExecutionListener- Throws:
Exception
-
MockitoResetTestExecutionListener