Class MockitoThreadLocalStateCleaner


  • public final class MockitoThreadLocalStateCleaner
    extends java.lang.Object
    Cleanup Mockito's Thread Local state. This is needed when Mockito has been used in an invalid way. Mockito.reset method should be called at the end of a test in the same thread where the methods were mocked/stubbed.