Class MockitoThreadLocalStateCleaner

java.lang.Object
org.apache.pulsar.tests.MockitoThreadLocalStateCleaner

public final class MockitoThreadLocalStateCleaner extends 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.
  • Field Details

  • Method Details

    • cleanup

      public void cleanup()
    • isEnabled

      public boolean isEnabled()