Class ResetMockitoRunListener

java.lang.Object
org.junit.runner.notification.RunListener
de.hybris.platform.testframework.runlistener.ResetMockitoRunListener

public class ResetMockitoRunListener extends org.junit.runner.notification.RunListener
Kills ongoing Mockito stubbing and frees recorded invocations before and after each test class.
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.junit.runner.notification.RunListener

    org.junit.runner.notification.RunListener.ThreadSafe
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
     
    void
    testRunFinished(org.junit.runner.Result result)
     
    void
    testRunStarted(org.junit.runner.Description description)
     

    Methods inherited from class org.junit.runner.notification.RunListener

    testAssumptionFailure, testFailure, testFinished, testIgnored, testStarted, testSuiteFinished, testSuiteStarted

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ResetMockitoRunListener

      public ResetMockitoRunListener()
  • Method Details

    • testRunStarted

      public void testRunStarted(org.junit.runner.Description description) throws Exception
      Overrides:
      testRunStarted in class org.junit.runner.notification.RunListener
      Throws:
      Exception
    • testRunFinished

      public void testRunFinished(org.junit.runner.Result result) throws Exception
      Overrides:
      testRunFinished in class org.junit.runner.notification.RunListener
      Throws:
      Exception
    • resetMockito

      public static void resetMockito()