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.
since 3.4.0 for removal in 4.0.0 in favor of MockitoResetTestExecutionListener
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

    Constructors
    Constructor
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    afterTestMethod(org.springframework.test.context.TestContext testContext)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    void
    beforeTestMethod(org.springframework.test.context.TestContext testContext)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    int
    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 interface org.springframework.core.Ordered
      Overrides:
      getOrder in class org.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:
      beforeTestMethod in interface org.springframework.test.context.TestExecutionListener
      Overrides:
      beforeTestMethod in class org.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:
      afterTestMethod in interface org.springframework.test.context.TestExecutionListener
      Overrides:
      afterTestMethod in class org.springframework.test.context.support.AbstractTestExecutionListener
      Throws:
      Exception