ResetMocksTestExecutionListener

Deprecated (for removal)

Since version 3.4.0

TestExecutionListener to reset any mock beans that have been marked with a MockReset. Typically used alongside MockitoTestExecutionListener.

Author

Phillip Webb

Since

1.4.0

Deprecated

since 3.4.0 for removal in 3.6.0 in favor of org.springframework.test.context.bean.override.mockito.MockitoResetTestExecutionListener

See also

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
val HIGHEST_PRECEDENCE: Int = -2147483648
Link copied to clipboard
val LOWEST_PRECEDENCE: Int = 2147483647

Functions

Link copied to clipboard
open fun afterTestClass(testContext: TestContext)
Link copied to clipboard
open fun afterTestExecution(testContext: TestContext)
Link copied to clipboard
open fun afterTestMethod(testContext: TestContext)
Link copied to clipboard
open fun beforeTestClass(testContext: TestContext)
Link copied to clipboard
open fun beforeTestExecution(testContext: TestContext)
Link copied to clipboard
open fun beforeTestMethod(testContext: TestContext)
Link copied to clipboard
open fun getOrder(): Int
Link copied to clipboard
open fun prepareTestInstance(testContext: TestContext)