Class ResetMocksTestExecutionListener
java.lang.Object
org.springframework.test.context.support.AbstractTestExecutionListener
org.springframework.boot.test.mock.mockito.ResetMocksTestExecutionListener
- All Implemented Interfaces:
Ordered
,TestExecutionListener
@Deprecated(since="3.4.0",
forRemoval=true)
public class ResetMocksTestExecutionListener
extends 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
- Author:
- Phillip Webb
- 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 TypeMethodDescriptionvoid
afterTestMethod
(TestContext testContext) Deprecated, for removal: This API element is subject to removal in a future version.void
beforeTestMethod
(TestContext testContext) Deprecated, for removal: This API element is subject to removal in a future version.int
getOrder()
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:
getOrder
in interfaceOrdered
- Overrides:
getOrder
in classAbstractTestExecutionListener
-
beforeTestMethod
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
beforeTestMethod
in interfaceTestExecutionListener
- Overrides:
beforeTestMethod
in classAbstractTestExecutionListener
- Throws:
Exception
-
afterTestMethod
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
afterTestMethod
in interfaceTestExecutionListener
- Overrides:
afterTestMethod
in classAbstractTestExecutionListener
- Throws:
Exception
-
MockitoResetTestExecutionListener